mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
de78af3ac5
Reviewed by: exp8 run on pointyhat Supported by: miwi
76 lines
2.4 KiB
Makefile
76 lines
2.4 KiB
Makefile
# New ports collection makefile for: Ming
|
|
# Date created: 14 October 2000
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ming
|
|
PORTVERSION= 0.3.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= LGPL'ed Flash 4/5 movie output library with many languages support
|
|
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png \
|
|
ungif.5:${PORTSDIR}/graphics/libungif
|
|
|
|
CONFLICTS= ja-ming-[0-9]*
|
|
|
|
USE_GNOME= gnometarget
|
|
USE_BISON= build
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
CONFIGURE_ARGS= --includedir=${PREFIX}/include/ming \
|
|
ac_cv_path_PYTHON=no
|
|
USE_LDCONFIG= yes
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
CPPFLAGS= -I. -I.. -I${LOCALBASE}/include
|
|
LDFLAGS= -L. -L.. -L${LOCALBASE}/lib
|
|
CFLAGS+= ${CPPFLAGS}
|
|
|
|
UTILS= dbl2png listaction listaction_d listfdb listjpeg listmp3 \
|
|
listswf listswf_d makefdb makeswf raw2adpcm swftoperl \
|
|
swftophp swftopython gif2dbl gif2mask png2dbl png2swf
|
|
DOCS= CREDITS ChangeLog HISTORY NEWS README TODO
|
|
DOCS_UTIL= README TIPS TODO swftoperl.html
|
|
|
|
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
|
|
|
|
do-install:
|
|
.for file in ${UTILS}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/util/${file} ${PREFIX}/bin
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${WRKSRC}/util/ming-config ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/util/cws2fws ${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/util
|
|
${INSTALL_DATA} ${WRKSRC}/util/*.h ${PREFIX}/include/ming/util
|
|
${INSTALL_DATA} ${WRKSRC}/util/png2dbl.c ${PREFIX}/include/ming/util
|
|
@${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} ${DOCSDIR}
|
|
.for file in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
@${MKDIR} ${DOCSDIR}/util
|
|
.for file in ${DOCS_UTIL}
|
|
@${INSTALL_DATA} ${WRKSRC}/util/${file} ${DOCSDIR}/util
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|