1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/graphics/ming/Makefile
Tobias C. Berner abea843f71 graphics/ming: fix build on current
The issue with duplicate symbols has been reported upstream on 2016-11-22:
	https://github.com/libming/libming/issues/55
2020-08-27 12:30:19 +00:00

58 lines
1.7 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= ming
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 0_4_8
CATEGORIES= graphics
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Flash 4/5 movie output library with many languages support
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC}/LICENSE_GPL2
LICENSE_FILE_LGPL21= ${WRKSRC}/LICENSE
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libgif.so:graphics/giflib \
libpng.so:graphics/png
CONFLICTS_INSTALL= ja-ming
OPTIONS_DEFINE= DOCS
PORTSCOUT= limit:^ming-
CONFIGURE_ARGS= --includedir=${PREFIX}/include/ming
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
USES= autoreconf bison gmake libtool localbase pathfix shebangfix
PORTDOCS= *
USE_GITHUB= yes
GH_ACCOUNT= lib${PORTNAME}
GH_PROJECT= lib${PORTNAME}
SHEBANG_FILES= util/cws2fws
# https://github.com/libming/libming/issues/55
CFLAGS+= -fcommon
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/ming/ ${STAGEDIR}${PREFIX}/include/ming/blocks/ ${STAGEDIR}${PREFIX}/include/ming/util/
cd ${WRKSRC}/util/ && ${INSTALL_SCRIPT} cws2fws ming-config ${STAGEDIR}${PREFIX}/bin/
cd ${WRKSRC}/ && ${INSTALL_DATA} *.h src/*.h ${STAGEDIR}${PREFIX}/include/ming/
cd ${WRKSRC}/src/blocks/ && ${INSTALL_DATA} *.h ${STAGEDIR}${PREFIX}/include/ming/blocks/
cd ${WRKSRC}/util/ && ${INSTALL_DATA} *.h ${STAGEDIR}${PREFIX}/include/ming/util/
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/ ${STAGEDIR}${DOCSDIR}/util/
cd ${WRKSRC}/ && ${INSTALL_DATA} HISTORY NEWS README TODO ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/util/ && ${INSTALL_DATA} README TIPS TODO swftoperl.html ${STAGEDIR}${DOCSDIR}/util/
.include <bsd.port.mk>