aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/licq/Makefile
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2001-04-11 04:09:53 +0800
committergreen <green@FreeBSD.org>2001-04-11 04:09:53 +0800
commitf07a9e4fac742090e01c362e04f7b7aa425fbe5a (patch)
tree1223c579f5181bc78af966be4a3878e9964337f0 /net-im/licq/Makefile
parenta900bc4cbb4dc2b75c17e20b86a287e7946a110e (diff)
downloadfreebsd-ports-gnome-f07a9e4fac742090e01c362e04f7b7aa425fbe5a.tar.gz
freebsd-ports-gnome-f07a9e4fac742090e01c362e04f7b7aa425fbe5a.tar.zst
freebsd-ports-gnome-f07a9e4fac742090e01c362e04f7b7aa425fbe5a.zip
Convert the monolithic Licq port into an licq-base port and satellite
ports for different plugins. Commit the first of the plugins, qt-gui, as that has in the past been part of the normal licq port. The rest are coming after I've tried them out. I'd like to thank Jeremy Norris greatly for doing this work :) Submitted by: Jeremy Norris <ishmael27@home.com>
Diffstat (limited to 'net-im/licq/Makefile')
-rw-r--r--net-im/licq/Makefile65
1 files changed, 16 insertions, 49 deletions
diff --git a/net-im/licq/Makefile b/net-im/licq/Makefile
index 5fc3130f8b56..33173d5ff041 100644
--- a/net-im/licq/Makefile
+++ b/net-im/licq/Makefile
@@ -5,64 +5,31 @@
# $FreeBSD$
#
-PORTNAME= licq
-PORTVERSION= 1.0.3
+PORTNAME= base
+PORTVERSION= ${LICQ_VER}
CATEGORIES= net
-MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
- ftp://ftp.wibble.net/pub/licq/srcs/ \
- ftp://licq.darkorb.net/srcs/ \
- ftp://ftp.fanfic.org/pub/licq/srcs/ \
- ftp://ftp.inter-i.uni-mainz.de/pub/licq/srcs/
-MASTER_SITE_SUBDIR= ${PORTNAME}
+.if defined(WITH_SOCKS)
+PKGNAMESUFFIX= -socks
+.endif
MAINTAINER= green@FreeBSD.org
-BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake
+.if defined(WITH_SOCKS)
+BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
+.endif
-USE_QT_VER= 2
-USE_GMAKE= yes
-USE_AUTOCONF= yes
USE_OPENSSL= yes
-USE_PERL5= yes
-
-CONFIGURE_TARGET= $(ARCH)-unknown-freebsdelf$(OSREL)
+WRKSRC= ${WRKDIR}/${DISTNAME}
+.if defined(WITH_SOCKS)
+CONFIGURE_ARGS+=--enable-socks5
+.endif
post-patch:
- @${PERL} -pi.orig -e 's:<wait\.h>:<sys/wait.h>:g' \
- ${WRKSRC}/src/sighandler.c
-
-post-configure:
- @(cd ${WRKSRC}/plugins/qt-gui-${PORTVERSION} && ${AUTOCONF})
- @(cd ${WRKSRC}/plugins/qt-gui-${PORTVERSION} && \
- if ! ${SETENV} CC="${CC}" CXX="${CXX}" \
- CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
- INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
- INSTALL_DATA="${INSTALL_DATA}" \
- INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
- INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
- QTBASE="${X11BASE}" \
- ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} \
- --enable-spoofing; then \
- ${ECHO} "===> Script \"${CONFIGURE_SCRIPT}\" failed: here are the contents of \"${CONFIGURE_LOG}\""; \
- ${CAT} ${CONFIGURE_LOG}; \
- ${ECHO} "(end of \"${CONFIGURE_LOG}\")"; \
- ${FALSE}; \
- fi)
-
-post-build:
- @(cd ${WRKSRC}/plugins/qt-gui-${PORTVERSION}; \
- ${SETENV} ${MAKE_ENV} \
- ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
-
-pre-install:
- ${RM} -rf ${PREFIX}/share/licq
- ${MKDIR} -m 700 ${PREFIX}/share/licq
+ @${PERL5} -pi -e 's|<wait.h>|<sys/wait.h>|g' \
+ ${WRKSRC}/src/sighandler.c
post-install:
- cd ${WRKSRC}/plugins/qt-gui-${PORTVERSION}; \
- ${SETENV} ${MAKE_ENV} \
- ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}
- ${CHMOD} -R a-w ${PREFIX}/share/licq
- ${CHMOD} 755 ${PREFIX}/share/licq
+ @${CAT} ${PKGMESSAGE}
+.include "${.CURDIR}/Makefile.inc"
.include <bsd.port.mk>