diff options
author | danilo <danilo@FreeBSD.org> | 2013-10-12 00:38:37 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2013-10-12 00:38:37 +0800 |
commit | 1711680a1de5a5a58a84d5beaae4765731b29749 (patch) | |
tree | 51b762840e60fd7794b95e4c23c186cdb89f5b0e /net | |
parent | d1bc16e8ff689e0c3a02daf6af52e2febbb84aec (diff) | |
download | freebsd-ports-gnome-1711680a1de5a5a58a84d5beaae4765731b29749.tar.gz freebsd-ports-gnome-1711680a1de5a5a58a84d5beaae4765731b29749.tar.zst freebsd-ports-gnome-1711680a1de5a5a58a84d5beaae4765731b29749.zip |
- Remove the indefinite article from COMMENT
- Convert LIB_DEPENDS to new syntax
- Fix build on CURRENT
- Add stage support
PR: ports/182799
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Approved by: wg/culot (mentors, implicit)
Diffstat (limited to 'net')
-rw-r--r-- | net/nxproxy/Makefile | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/net/nxproxy/Makefile b/net/nxproxy/Makefile index bfb7d4bf47ef..d9eae03fa464 100644 --- a/net/nxproxy/Makefile +++ b/net/nxproxy/Makefile @@ -11,22 +11,24 @@ DISTFILES= nxcomp-${DISTVERSION:S/2/1/}.tar.gz:nxcomp\ nxproxy-${DISTVERSION}.tar.gz:nxproxy MAINTAINER= ports@FreeBSD.org -COMMENT= An x2go helper program - -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \ - jpeg:${PORTSDIR}/graphics/jpeg +COMMENT= Helper program for x2go LICENSE= GPLv2 -LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \ + libjpeg.so:${PORTSDIR}/graphics/jpeg + CONFLICTS= nxserver-[0-9]* -GNU_CONFIGURE= yes -USE_AUTOTOOLS= autoconf + USE_XORG= ice x11 sm -CXXFLAGS+= -I${LOCALBASE}/include/libpng15 -CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}" +USE_GCC= any +USE_AUTOTOOLS= autoconf + +CPPFLAGS+= $$(libpng-config --I_opts) +LDFLAGS+= $$(libpng-config --L_opts) + PLIST_FILES= bin/nxproxy bin/setsid -NO_STAGE= yes .include <bsd.port.pre.mk> .if ${ARCH} == "powerpc" && ${OSVERSION} > 900000 @@ -37,24 +39,28 @@ 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 + @${REINPLACE_CMD} -e \ + '/-O3/s|^|#|' ${WRKSRC}/configure.in + @${REINPLACE_CMD} -e \ + '/-O3/s|^|#|' ${WRKDIR}/nxcomp/configure.in + @${REINPLACE_CMD} -e \ + 's|-Wpointer-arith|@CPPFLAGS@|' ${WRKDIR}/nxcomp/Makefile.in pre-configure: cd ${WRKDIR}/nxcomp; ${AUTOCONF} - cd ${WRKDIR}/nxcomp; ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; + cd ${WRKDIR}/nxcomp; ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} \ + ${CONFIGURE_ARGS} --without-symbols \ + CC="${CC}" CFLAGS="${CFLAGS}" \ + CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \ + CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" 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 +.for i in nxproxy setsid + (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin) +.endfor .include <bsd.port.post.mk> |