freebsd-ports/emulators/pipelight/Makefile
Dmitry Marakasov 67971bd0fb Improve shebangfix framework
- Support multiple values in *_OLD_CMD, i.e. we can now fix both "/usr/bin/python" and "/usr/bin/env python" at the same time
- Default *_OLD_CMD values are now always appended, so you don't need to specify them in individual ports
- Add lua support (depends on USES=lua)
- Add more default values, such as "/usr/bin/env foo" for python, perl, bash, ruby and lua
- Shebangfix now matches whole words, e.g. we will no longer (erroneously) replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is still (correctly) replaced with "${perl_CMD} -tt")

Note that *_OLD_CMD items containing spaces must now be quoted (e.g. perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl")

Update shebangfix usage according to new rules in many ports:

- Remove *_OLD_CMD for patterns now replaced by default
- Quote custom *_OLD_CMD which contain spaces

Fix shebangfix usage in many ports (irrelevant to infrastructure change):

- Remove redundant SHEBANG_LANG (no need to duplicate default langs)
- Remove redundant *_CMD (such as python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present)
- Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for exact string

Approved by:	portmgr (bapt)
Differential Revision:	D3756
2015-10-19 14:50:52 +00:00

71 lines
2.4 KiB
Makefile

# Created by: Kris Moore <kmoore@FreeBSD.org>
# $FreeBSD$
PORTNAME= pipelight
DISTVERSION= 0.2.8.1
CATEGORIES= emulators
MASTER_SITES= https://bitbucket.org/mmueller2012/pipelight/get/ \
http://repos.fds-team.de/pluginloader/v${DISTVERSION}/:plg
DISTNAME= v${DISTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} pluginloader.tar.gz:plg pluginloader.tar.gz.sig:plg
DIST_SUBDIR= pipelight
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Wrapper for using windows plugins in web browsers
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/bin/gpg2:${PORTSDIR}/security/gnupg \
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= libxml2.so:${PORTSDIR}/textproc/libxml2
RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash \
${LOCALBASE}/bin/wget:${PORTSDIR}/ftp/wget \
${LOCALBASE}/bin/zenity:${PORTSDIR}/x11/zenity \
${LOCALBASE}/bin/cabextract:${PORTSDIR}/archivers/cabextract \
${LOCALBASE}/bin/flock:${PORTSDIR}/sysutils/flock \
${LOCALBASE}/bin/gpg2:${PORTSDIR}/security/gnupg
WRKSRC= ${WRKDIR}/mmueller2012-pipelight-8a1bdc6c254f
USE_GCC= yes
USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--verbose --wine-path=${LOCALBASE}/bin/wine --win32-prebuilt \
--win64-prebuilt --moz-plugin-path=${LOCALBASE}/lib/browser_plugins \
--cxx=${CXX} --bash-interp=${LOCALBASE}/bin/bash \
--gpg-exec=${LOCALBASE}/bin/gpg2
USE_XORG= x11
USES= compiler:gcc-c++11-lib gmake shebangfix
MAKE_JOBS_UNSAFE=yes
SHEBANG_FILES= configure \
share/install-dependency
SUB_FILES= pipelight-mkufs
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
BUILD_DEPENDS+= ${LOCALBASE}/bin/wine:${PORTSDIR}/emulators/wine-staging
RUN_DEPENDS+= ${LOCALBASE}/bin/wine:${PORTSDIR}/emulators/wine-staging
.elif ${ARCH} == "amd64"
BUILD_DEPENDS+= ${LOCALBASE}/bin/wine:${PORTSDIR}/emulators/i386-wine-staging
RUN_DEPENDS+= ${LOCALBASE}/bin/wine:${PORTSDIR}/emulators/i386-wine-staging
.endif
pre-configure:
${LN} -s ${DISTDIR}/${DIST_SUBDIR}/pluginloader.tar.gz \
${WRKSRC}/pluginloader-v${DISTVERSION}.tar.gz
${LN} -s ${DISTDIR}/${DIST_SUBDIR}/pluginloader.tar.gz.sig \
${WRKSRC}/pluginloader-v${DISTVERSION}.tar.gz.sig
${MKDIR} ${WRKDIR}/.gnupg
post-stage:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pipelight/libpipelight.so
post-install:
@${INSTALL_SCRIPT} ${WRKDIR}/pipelight-mkufs ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.post.mk>