1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

1: Stagify.

2: new syntax of LIB_DEPENDS.

Approved by:	portmgr@
This commit is contained in:
Vanilla I. Shu 2014-06-20 08:02:55 +00:00
parent bfb32b6efe
commit 3f0ec74d2d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358526
2 changed files with 6 additions and 14 deletions

View File

@ -11,9 +11,9 @@ MASTER_SITES= http://jggtrans.jajcus.net/downloads/ \
MAINTAINER= mg@fork.pl
COMMENT= Jabberd XMPP to GG instant messaging service gateway
LIB_DEPENDS= idn.17:${PORTSDIR}/dns/libidn \
expat.6:${PORTSDIR}/textproc/expat2 \
gadu.3:${PORTSDIR}/polish/libgadu
LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn \
libexpat.so:${PORTSDIR}/textproc/expat2 \
libgadu.so:${PORTSDIR}/polish/libgadu
GNU_CONFIGURE= yes
USES= gettext gmake pkgconfig
@ -26,14 +26,10 @@ USE_RC_SUBR= jggtrans
OPTIONS_DEFINE= DEBUG EJABBERD
EJABBERD_DESC= transport with ejabberd
DEBUG_CONFIGURE_ENABLE=debug
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ! ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --disable-debug
.endif
.if ${PORT_OPTIONS:MEJABBERD}
JABBER_USER?= ejabberd
SUB_LIST+= JABBER_REQUIRE=ejabberd
@ -45,8 +41,6 @@ SUB_LIST+= JABBER_REQUIRE=jabberd
SUB_LIST+= JABBER_USER=${JABBER_USER}
post-install:
@${INSTALL_DATA} ${WRKSRC}/jggtrans.xml ${PREFIX}/etc/jggtrans.xml.sample
@${CP} -n ${WRKSRC}/jggtrans.xml ${PREFIX}/etc/jggtrans.xml || ${TRUE}
@${CAT} ${PKGMESSAGE}
@${INSTALL_DATA} ${WRKSRC}/jggtrans.xml ${STAGEDIR}${PREFIX}/etc/jggtrans.xml.sample
.include <bsd.port.mk>

View File

@ -1,6 +1,4 @@
@sample etc/jggtrans.xml.sample
sbin/jggtrans
share/locale/nl/LC_MESSAGES/jggtrans.mo
share/locale/pl/LC_MESSAGES/jggtrans.mo
@unexec if cmp -s %D/etc/jggtrans.xml.sample %D/etc/jggtrans.xml; then rm -f %D/etc/jggtrans.xml; fi
etc/jggtrans.xml.sample
@exec if [ ! -f %D/etc/jggtrans.xml ] ; then cp -p %D/%F %B/jggtrans.xml; fi