aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-04-24 23:01:05 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-04-24 23:01:05 +0800
commitb8fe4b0c3b65f135236ecb3cd6994dc772127014 (patch)
tree07870158467bcd074c6227f0e72882fa681dee39 /net
parent6d7e43ccde3849157de114531b0075ddaae58110 (diff)
downloadfreebsd-ports-gnome-b8fe4b0c3b65f135236ecb3cd6994dc772127014.tar.gz
freebsd-ports-gnome-b8fe4b0c3b65f135236ecb3cd6994dc772127014.tar.zst
freebsd-ports-gnome-b8fe4b0c3b65f135236ecb3cd6994dc772127014.zip
- Unbreak on 10.x+ by using gcc
- Support staging - Switch USE_GMAKE to USES - Use mew LIB_DEPENDS syntax - Optionize
Diffstat (limited to 'net')
-rw-r--r--net/ohphone/Makefile34
-rw-r--r--net/ohphone/pkg-plist9
2 files changed, 18 insertions, 25 deletions
diff --git a/net/ohphone/Makefile b/net/ohphone/Makefile
index c269fdaee090..905e826e8fad 100644
--- a/net/ohphone/Makefile
+++ b/net/ohphone/Makefile
@@ -10,34 +10,36 @@ MASTER_SITES= ftp://ftp.frm2.tum.de/pub/jpulz/FreeBSD/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= H323 Video Conferencing Program, compatible with NetMeeting
-LIB_DEPENDS= h323_r.1:${PORTSDIR}/net/openh323
+LIB_DEPENDS= libh323_r.so:${PORTSDIR}/net/openh323
-USES= bison
-USE_GMAKE= yes
+USES= bison gmake
ALL_TARGET= optshared
MAKE_ENV= PWLIBDIR=${LOCALBASE}/share/pwlib \
OPENH323DIR=${LOCALBASE}/share/openh323 \
SYSLIBDIR=${LOCALBASE}/lib
MAKE_ARGS= OSTYPE=${OPSYS} MACHTYPE=${ARCH:S/i386/x86/} \
OSRELEASE=${OSVERSION} CPLUS=${CXX}
-
-MAN1= ohphone.1
+USE_GCC= any
PLIST_SUB= PORTNAME=${PORTNAME}
DOCSDIR= ${PREFIX}/share/doc/openh323
EXAMPLESDIR= ${PREFIX}/share/examples/openh323
-NO_STAGE= yes
+PLIST_FILES= bin/${PORTNAME} \
+ man/man1/${PORTNAME}.1.gz
+PORTDOCS= *
+PORTEXAMPLES= *
+
+OPTIONS_DEFINE= DOCS EXAMPLES
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/obj_r/ohphone ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/ohphone.1 ${PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/ReadMe.txt ${DOCSDIR}/${PORTNAME}
-.endif
- ${MKDIR} ${EXAMPLESDIR}/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/check_listen.awk ${EXAMPLESDIR}/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/regtest ${EXAMPLESDIR}/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/stresstest ${EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_PROGRAM} ${WRKSRC}/obj_r/ohphone ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/ohphone.1 ${STAGEDIR}${PREFIX}/man/man1
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/ReadMe.txt ${STAGEDIR}${DOCSDIR}/${PORTNAME}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/check_listen.awk ${STAGEDIR}${EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/regtest ${STAGEDIR}${EXAMPLESDIR}/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/stresstest ${STAGEDIR}${EXAMPLESDIR}/${PORTNAME}
.include <bsd.port.mk>
diff --git a/net/ohphone/pkg-plist b/net/ohphone/pkg-plist
deleted file mode 100644
index 549e1fee9d71..000000000000
--- a/net/ohphone/pkg-plist
+++ /dev/null
@@ -1,9 +0,0 @@
-bin/ohphone
-%%EXAMPLESDIR%%/%%PORTNAME%%/check_listen.awk
-%%EXAMPLESDIR%%/%%PORTNAME%%/regtest
-%%EXAMPLESDIR%%/%%PORTNAME%%/stresstest
-@dirrm %%EXAMPLESDIR%%/%%PORTNAME%%
-@dirrmtry %%EXAMPLESDIR%%
-%%PORTDOCS%%%%DOCSDIR%%/%%PORTNAME%%/ReadMe.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%/%%PORTNAME%%
-%%PORTDOCS%%@dirrmtry %%DOCSDIR%%