blob: 21547afc0aa78511a57162789f1a666e64f484b8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: electricsheep
# Date created: 11 Feb 2002
# Whom: David Yeske <dyeske@yahoo.com>
#
# $FreeBSD$
#
PORTNAME= electricsheep
PORTVERSION= 2.4
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://electricsheep.org/
MAINTAINER= dyeske@yahoo.com
COMMENT= A nice distributed screensaver
LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2
RUN_DEPENDS= xloadimage:${PORTSDIR}/x11/xloadimage \
xsetbg:${PORTSDIR}/graphics/xli \
curl:${PORTSDIR}/ftp/curl
USE_X_PREFIX= yes
USE_SDL= sdl
USE_GMAKE= yes
USE_REINPLACE= yes
USE_LIBTOOL_VER=13
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${X11BASE}/lib"
LIBTOOLFILES= configure mpeg2dec/configure flame/configure
post-patch:
@${REINPLACE_CMD} -e \
's|sdl-config|sdl11-config|' \
${WRKSRC}/mpeg2dec/configure
@${REINPLACE_CMD} -e \
's|/usr/X11R6/lib/xscreensaver/config|${X11BASE}/share/xscreensaver/config|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|<SDL/SDL.h>|<SDL11/SDL.h>|' \
${WRKSRC}/mpeg2dec/libvo/video_out_sdl.c
@${REINPLACE_CMD} -e \
's|/usr/local/share|${PREFIX}/share/electricsheep|' \
${WRKSRC}/electricsheep.c
@${REINPLACE_CMD} -e \
's|-Wall||; \
s|CFLAGS=\$$OPT_CFLAGS|#CFLAGS=\$$OPT_CFLAGS|' \
${WRKSRC}/mpeg2dec/configure
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/electricsheep ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/flame/anim-flame ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/flame/convert-flame ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/flame/hqi-flame ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/flame/pick-flame ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/mpeg2dec/src/mpeg2dec_onroot ${PREFIX}/bin
@${INSTALL} -d -m 0755 ${PREFIX}/share/electricsheep
@${INSTALL_DATA} ${WRKSRC}/*.tif ${PREFIX}/share/electricsheep
.include <bsd.port.mk>
|