aboutsummaryrefslogtreecommitdiff
path: root/graphics/ming/Makefile
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2006-04-10 19:40:38 +0000
committerRenato Botelho <garga@FreeBSD.org>2006-04-10 19:40:38 +0000
commit631d2ecd4c60c2a40f6f55c0ffac1615cb941e0b (patch)
treebc58f071d1194274efe71f1171cf9b2f3b073e78 /graphics/ming/Makefile
parentaa248bc73c24861819c4d3ce9691171f979af05e (diff)
downloadports-631d2ecd4c60c2a40f6f55c0ffac1615cb941e0b.tar.gz
ports-631d2ecd4c60c2a40f6f55c0ffac1615cb941e0b.zip
Notes
Diffstat (limited to 'graphics/ming/Makefile')
-rw-r--r--graphics/ming/Makefile111
1 files changed, 40 insertions, 71 deletions
diff --git a/graphics/ming/Makefile b/graphics/ming/Makefile
index 0069c41b2fcb..ef37e4221272 100644
--- a/graphics/ming/Makefile
+++ b/graphics/ming/Makefile
@@ -6,12 +6,10 @@
#
PORTNAME= ming
-PORTVERSION= 0.2a
-PORTREVISION= 1
+PORTVERSION= 0.3.0
CATEGORIES= graphics
-MASTER_SITES= http://www.opaque.net/ming/
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-examples${EXTRACT_SUFX}
-EXTRACT_SUFX= .tgz
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= LGPL'ed Flash 4/5 movie output library with many languages support
@@ -21,81 +19,52 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
CONFLICTS= ja-ming-*
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
-MAKE_ARGS= NOPROFILE=true
+USE_GNOME= gnometarget
+USE_BISON= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS= --includedir=${PREFIX}/include/ming \
+ ac_cv_path_PYTHON=no
INSTALLS_SHLIB= yes
-UTILS= gif2dbl \
- gif2mask \
- listfdb \
- listjpeg \
- listswf \
- makefdb \
- png2dbl \
- swftophp
-DOCS= CHANGES \
- CREDITS \
- README \
- TODO
-DOCS_UTIL= README \
- TODO
+CPPFLAGS= -I. -I.. -I${LOCALBASE}/include
+LDFLAGS= -L. -L.. -L${LOCALBASE}/lib
+CFLAGS+= ${CPPFLAGS}
-post-extract:
- ${LN} -s ${WRKDIR}/${PORTNAME}-examples ${WRKSRC}/../examples
- ${SED} -e 's:"\.\./\.\./ming\.h":<ming.h>:g' \
- ${WRKSRC}/ming.h > ${WRKSRC}/mingpp.h
- cd ${WRKSRC}/../util && \
- ${RM} bindump.c decompile5.c hexdump.c listmp3.c
-# cd ${WRKSRC}/../php_ext && ${LN} -sf ming-4.0.6.c ming.c
- ${RM} -rf ${WRKSRC}/../examples/results
+UTILS= dbl2png listaction listaction_d listfdb listjpeg listmp3 \
+ listswf listswf_d makefdb makeswf raw2adpcm swftoperl \
+ swftophp swftopython
+DOCS= CREDITS ChangeLog HISTORY NEWS README TODO
+DOCS_UTIL= README TIPS TODO swftoperl.html
-pre-build:
- ${CP} ${FILESDIR}/Makefile ${WRKSRC}/
+post-patch:
+ @${REINPLACE_CMD} -e 's|@SHCFLAGS@|-fPIC -DPIC|g ; \
+ s|@SHLIBLDFLAGS@|-shared -Wl,-soname,$$(SHAREDLIB)|g ; \
+ s|@SHLIBEXT@|.so.4|g' ${WRKSRC}/Makefile.config.in
+ @${REINPLACE_CMD} -e '/SHORT_SHLIBEXT/d' ${WRKSRC}/src/Makefile
-post-build:
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -I${PREFIX}/include -I${PREFIX}/include/ming -c *.c
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -L${PREFIX}/lib -o gif2dbl gif2dbl.o -lm -lz -lungif
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -L${PREFIX}/lib -o gif2mask gif2mask.o -lm -lz -lungif
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -L${PREFIX}/lib -o listfdb listfdb.o blocktypes.o
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -L${PREFIX}/lib -o listjpeg listjpeg.o
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -L${PREFIX}/lib -o listswf listswf.o blocktypes.o decompile.o read.o -lz
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -L${PREFIX}/lib -o makefdb makefdb.o blocktypes.o read.o
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -L${PREFIX}/lib -o png2dbl png2dbl.o -lm -lz -lpng
- cd ${WRKSRC}/../util && \
- ${CC} ${CFLAGS} -L${PREFIX}/lib -o swftophp swftophp.o blocktypes.o decompile.o read.o -lm
-
-pre-install:
- ${MKDIR} ${PREFIX}/include/ming/blocks
-
-post-install:
-.for f in ${UTILS}
- ${INSTALL_PROGRAM} ${WRKSRC}/../util/${f} ${PREFIX}/bin/
+do-install:
+.for file in ${UTILS}
+ ${INSTALL_PROGRAM} ${WRKSRC}/util/${file} ${PREFIX}/bin
.endfor
+ ${INSTALL_SCRIPT} ${WRKSRC}/util/ming-config ${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/include/ming
+ ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/ming
+ ${INSTALL_DATA} ${WRKSRC}/src/*.h ${PREFIX}/include/ming
+ @${MKDIR} ${PREFIX}/include/ming/blocks
+ ${INSTALL_DATA} ${WRKSRC}/src/blocks/*.h ${PREFIX}/include/ming/blocks
+ ${INSTALL_DATA} ${WRKSRC}/libming.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/libming.so.4 ${PREFIX}/lib
+ ${LN} -sf libming.so.4 ${PREFIX}/lib/libming.so
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ming/utils
-.for f in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/../${f} ${PREFIX}/share/doc/ming/
+ @${MKDIR} ${DOCSDIR}
+.for file in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
-.for f in ${DOCS_UTIL}
- ${INSTALL_DATA} ${WRKSRC}/../util/${f} ${PREFIX}/share/doc/ming/utils/
+ @${MKDIR} ${DOCSDIR}/util
+.for file in ${DOCS_UTIL}
+ @${INSTALL_DATA} ${WRKSRC}/util/${file} ${DOCSDIR}/util
.endfor
- ${MKDIR} ${PREFIX}/share/examples/ming/common
- ${INSTALL_DATA} ${WRKSRC}/../examples/common/* \
- ${PREFIX}/share/examples/ming/common/
- ${MKDIR} ${PREFIX}/share/examples/ming/c
- ${INSTALL_DATA} ${WRKSRC}/../examples/c/*.c \
- ${PREFIX}/share/examples/ming/c/
- ${MKDIR} ${PREFIX}/share/examples/ming/c++
- ${INSTALL_DATA} ${WRKSRC}/../examples/c++/*.cpp \
- ${PREFIX}/share/examples/ming/c++/
.endif
.include <bsd.port.mk>