1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/graphics/py-ming/Makefile
Tijl Coosemans 1ee4da6dd1 Let USES=localbase add -L${LOCALBASE}/lib to LIBS instead of LDFLAGS.
USES=localbase:ldflags can be used to set LDFLAGS.  Normally LDFLAGS
appears too early on the command line causing some ports to link with
their own libraries in LOCALBASE (if installed) instead of WRKSRC.

Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as
possible after anything a port Makefile might set.  Use _USES_POST
instead of .include in libedit.mk and libarchive.mk so things like
'USES=libedit localbase:ldflags' work correctly.

Fix some issues with LIBS in some ports.

Switch ports that don't support LIBS to localbase:ldflags.

PR:		212987
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-09-30 19:24:30 +00:00

48 lines
1.3 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= ming
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 0_4_7
PORTREVISION= 1
CATEGORIES= graphics python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python module for Ming which allows you to create Flash 4/5 movies
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 \
libming.so:graphics/ming \
libpng.so:graphics/png
PORTSCOUT= limit:^ming-
CONFIGURE_ARGS= --enable-python
CONFIGURE_ENV= PYTHON_LDFLAGS="-L${PYTHON_LIBDIR} -l${PYTHON_VERSION}${PYTHON_ABIVER}"
GNU_CONFIGURE= yes
USE_PYTHON= autoplist concurrent distutils
USES= autoreconf libtool localbase:ldflags python
BUILD_WRKSRC= ${WRKSRC}/py_ext
INSTALL_WRKSRC= ${WRKSRC}/py_ext
USE_GITHUB= yes
GH_ACCOUNT= lib${PORTNAME}
GH_PROJECT= lib${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's| --root ".*"||' ${WRKSRC}/py_ext/Makefile.am
@${REINPLACE_CMD} -e 's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/py_ext/setup.py.in
@${LN} -fs ${LOCALBASE}/include/ming ${WRKSRC}/src
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_mingc.so
.include <bsd.port.mk>