mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
987942802f
Hat: portmgr Feature safe: yes
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# New ports collection makefile for: nxproxy
|
|
# Date created: 2010-06-24
|
|
# Whom: arved
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= nxproxy
|
|
DISTVERSION= 3.4.0-2
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://x2go.obviously-nice.de/deb/pool-lenny/nxproxy/:nxproxy \
|
|
http://x2go.obviously-nice.de/deb/pool-lenny/nxcomp/:nxcomp
|
|
DISTFILES= nxcomp-${DISTVERSION:S/2/1/}.tar.gz:nxcomp\
|
|
nxproxy-${DISTVERSION}.tar.gz:nxproxy
|
|
|
|
MAINTAINER= arved@FreeBSD.org
|
|
COMMENT= An x2go helper program
|
|
|
|
LIB_DEPENDS= png:${PORTSDIR}/graphics/png \
|
|
jpeg:${PORTSDIR}/graphics/jpeg
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
CONFLICTS= nxserver-[0-9]*
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= autoconf
|
|
USE_XORG= ice x11 sm
|
|
PLIST_FILES= bin/nxproxy bin/setsid
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "powerpc" && ${OSVERSION} > 900000
|
|
BROKEN= Does not link on powerpc-9
|
|
.endif
|
|
|
|
post-extract:
|
|
${LN} -sf ${WRKDIR}/nxcomp-${DISTVERSION:S/2/1/} ${WRKDIR}/nxcomp
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s,-O3,${CFLAGS}," ${WRKSRC}/configure.in \
|
|
${WRKDIR}/nxcomp/configure.in
|
|
${REINPLACE_CMD} -e "s,-lXcomp, -L${PREFIX}/lib -lpng -ljpeg ../nxcomp/libXcomp.a," \
|
|
${WRKSRC}/configure.in
|
|
.if ${OSVERSION} < 700000
|
|
${REINPLACE_CMD} -e "s,result = unsetenv,unsetenv," ${WRKDIR}/nxcomp/Children.cpp
|
|
.endif
|
|
|
|
pre-configure:
|
|
cd ${WRKDIR}/nxcomp; ${AUTOCONF}
|
|
cd ${WRKDIR}/nxcomp; ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS};
|
|
|
|
pre-build:
|
|
cd ${WRKDIR}/nxcomp; ${MAKE_ENV} ${MAKE}
|
|
cd ${WRKSRC}; ${CC} ${CFLAGS} ${FILESDIR}/setsid.c -o setsid
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nxproxy ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/setsid ${PREFIX}/bin
|
|
|
|
.include <bsd.port.post.mk>
|