Lines 7-14
Link Here
|
7 |
# |
7 |
# |
8 |
|
8 |
|
9 |
PORTNAME= swftools |
9 |
PORTNAME= swftools |
10 |
PORTVERSION= 0.8.1 |
10 |
PORTVERSION= 0.9.0 |
11 |
PORTREVISION= 1 |
|
|
12 |
CATEGORIES= graphics |
11 |
CATEGORIES= graphics |
13 |
MASTER_SITES= http://www.swftools.org/ |
12 |
MASTER_SITES= http://www.swftools.org/ |
14 |
|
13 |
|
Lines 18-38
Link Here
|
18 |
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \ |
17 |
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \ |
19 |
jpeg.9:${PORTSDIR}/graphics/jpeg \ |
18 |
jpeg.9:${PORTSDIR}/graphics/jpeg \ |
20 |
ungif.5:${PORTSDIR}/graphics/libungif \ |
19 |
ungif.5:${PORTSDIR}/graphics/libungif \ |
21 |
freetype.9:${PORTSDIR}/print/freetype2 |
20 |
freetype.9:${PORTSDIR}/print/freetype2 \ |
|
|
21 |
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig |
22 |
|
22 |
|
23 |
USE_GNOME= gnometarget pkgconfig |
23 |
OPTIONS= LAME "LAME MP3 audio encoder support" off |
|
|
24 |
|
25 |
USE_GNOME= pkgconfig |
26 |
USE_GL= glut |
24 |
USE_GMAKE= yes |
27 |
USE_GMAKE= yes |
25 |
GNU_CONFIGURE= yes |
28 |
GNU_CONFIGURE= yes |
26 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
29 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
27 |
|
30 |
|
28 |
MAN1= font2swf.1 gif2swf.1 jpeg2swf.1 pdf2swf.1 png2swf.1 \ |
31 |
MAN1= as3compile.1 font2swf.1 gif2swf.1 jpeg2swf.1 pdf2swf.1 \ |
29 |
swfbbox.1 swfc.1 swfcombine.1 swfdump.1 swfextract.1 \ |
32 |
png2swf.1 swfbbox.1 swfc.1 swfcombine.1 swfdump.1 \ |
30 |
swfstrings.1 wav2swf.1 |
33 |
swfextract.1 swfrender.1 swfstrings.1 wav2swf.1 |
31 |
|
34 |
|
32 |
CPPFLAGS= -I${LOCALBASE}/include |
35 |
CPPFLAGS= -I${LOCALBASE}/include |
33 |
LDFLAGS= -L${LOCALBASE}/lib |
36 |
LDFLAGS= -L${LOCALBASE}/lib |
34 |
|
37 |
|
35 |
.if defined(WITH_LAME) || exists(${LOCALBASE}/lib/libmp3lame.a) |
38 |
.include <bsd.port.pre.mk> |
|
|
39 |
|
40 |
.if defined(WITH_LAME) |
36 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
41 |
LIB_DEPENDS+= mp3lame.0:${PORTSDIR}/audio/lame |
37 |
.else |
42 |
.else |
38 |
CONFIGURE_ARGS+= --disable-lame |
43 |
CONFIGURE_ARGS+= --disable-lame |
Lines 40-46
Link Here
|
40 |
|
45 |
|
41 |
post-patch: |
46 |
post-patch: |
42 |
@${REINPLACE_CMD} -e 's| -O | |g ; \ |
47 |
@${REINPLACE_CMD} -e 's| -O | |g ; \ |
|
|
48 |
s|/usr/include/fontconfig|${LOCALBASE}/include/fontconfig|g ; \ |
43 |
s|/usr/local/include|${LOCALBASE}/include|g ; \ |
49 |
s|/usr/local/include|${LOCALBASE}/include|g ; \ |
44 |
s|/usr/local/lib|${LOCALBASE}/lib|g' ${WRKSRC}/configure |
50 |
s|/usr/local/lib|${LOCALBASE}/lib|g' ${WRKSRC}/configure |
|
|
51 |
@${REINPLACE_CMD} -e '/python/d ; \ |
52 |
/avi2swf/d' ${WRKSRC}/Makefile.in |
45 |
|
53 |
|
46 |
.include <bsd.port.mk> |
54 |
.include <bsd.port.post.mk> |