aboutsummaryrefslogtreecommitdiff
path: root/graphics/ming
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-01-22 09:24:05 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-01-22 09:24:05 +0000
commit600b34736badc7024378577993c9889222956cb5 (patch)
tree1e2265d35c1065aa4c818ffb52e3752bb6aa46e5 /graphics/ming
parent547c49887d3f93a3336c0cd2807d33ac40ea623e (diff)
downloadports-600b34736badc7024378577993c9889222956cb5.tar.gz
ports-600b34736badc7024378577993c9889222956cb5.zip
Notes
Diffstat (limited to 'graphics/ming')
-rw-r--r--graphics/ming/Makefile47
-rw-r--r--graphics/ming/pkg-plist12
2 files changed, 58 insertions, 1 deletions
diff --git a/graphics/ming/Makefile b/graphics/ming/Makefile
index d8aa33d5fe00..989acc9bf9e8 100644
--- a/graphics/ming/Makefile
+++ b/graphics/ming/Makefile
@@ -7,23 +7,40 @@
PORTNAME= ming
PORTVERSION= 0.0.9b
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://www.opaque.net/ming/
EXTRACT_SUFX= .tgz
MAINTAINER= knu@FreeBSD.org
+LIB_DEPENDS= png.4:${PORTSDIR}/graphics/png \
+ ungif.5:${PORTSDIR}/graphics/libungif
+
WRKSRC= ${WRKDIR}/${DISTNAME}/src
MAKE_ARGS= NOPROFILE=true
+UTILS= gif2dbl \
+ gif2mask \
+ listfdb \
+ listjpeg \
+ listmp3 \
+ listswf \
+ makefdb \
+ png2dbl \
+ swftophp
DOCS= CHANGES \
CREDITS \
README \
TODO
+DOCS_UTIL= README \
+ TODO
post-extract:
${MKDIR} ${WRKSRC}/c++
${CP} ${WRKSRC}/../c++_ext/ming.h ${WRKSRC}/c++/
+ cd ${WRKSRC}/../util && \
+ ${RM} bindump.c hexdump.c
post-patch:
${PERL} -i -p \
@@ -37,12 +54,40 @@ post-patch:
pre-build:
${CP} ${FILESDIR}/Makefile ${WRKSRC}/
+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 listmp3 listmp3.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
+
post-install:
+.for f in ${UTILS}
+ ${INSTALL_PROGRAM} ${WRKSRC}/../util/${f} ${PREFIX}/bin/
+.endfor
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ming
+ ${MKDIR} ${PREFIX}/share/doc/ming/utils
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/../${f} ${PREFIX}/share/doc/ming/
.endfor
+.for f in ${DOCS_UTIL}
+ ${INSTALL_DATA} ${WRKSRC}/../util/${f} ${PREFIX}/share/doc/ming/utils/
+.endfor
${MKDIR} ${PREFIX}/share/examples/ming/common
${INSTALL_DATA} ${WRKSRC}/../examples/common/* \
${PREFIX}/share/examples/ming/common/
diff --git a/graphics/ming/pkg-plist b/graphics/ming/pkg-plist
index 0928a3fd1d5f..30fb14e24c99 100644
--- a/graphics/ming/pkg-plist
+++ b/graphics/ming/pkg-plist
@@ -1,3 +1,12 @@
+bin/gif2dbl
+bin/gif2mask
+bin/listfdb
+bin/listjpeg
+bin/listmp3
+bin/listswf
+bin/makefdb
+bin/png2dbl
+bin/swftophp
include/ming/blocklist.h
include/ming/blocktypes.h
include/ming/displaylist.h
@@ -20,6 +29,9 @@ share/doc/ming/CHANGES
share/doc/ming/CREDITS
share/doc/ming/README
share/doc/ming/TODO
+share/doc/ming/utils/README
+share/doc/ming/utils/TODO
+@dirrm share/doc/ming/utils
@dirrm share/doc/ming
share/examples/ming/c/action.c
share/examples/ming/c/alphafill.c