From cafdf2676d8c001dadaf2c3e0d4457b278cfeaec Mon Sep 17 00:00:00 2001 From: Max Khon Date: Fri, 8 Feb 2002 10:10:39 +0000 Subject: [PATCH] Add an ability to build licq plugins using licq-devel port: - licq-console, licq-qt-gui: conditionally include licq-devel/Makefile.inc instead of licq/Makefile.inc if -DWITH_LICQ_DEVEL is specified - dynamically generated plists (currently used in licq-qt-gui port only) --- net-im/licq-console/Makefile | 4 ++++ net-im/licq-qt-gui/Makefile | 4 ++++ net-im/licq-qt-gui/pkg-plist | 1 + net-im/licq/Makefile.inc | 1 + net/licq-console/Makefile | 4 ++++ net/licq-devel/Makefile.inc | 2 ++ net/licq-qt-gui/Makefile | 4 ++++ net/licq-qt-gui/pkg-plist | 1 + net/licq/Makefile.inc | 1 + 9 files changed, 22 insertions(+) diff --git a/net-im/licq-console/Makefile b/net-im/licq-console/Makefile index 28a0d7bd5ea1..2a3c6e3b7757 100644 --- a/net-im/licq-console/Makefile +++ b/net-im/licq-console/Makefile @@ -25,5 +25,9 @@ post-install: ${PREFIX}/etc/licq_console.conf.sample .include +.if defined(WITH_LICQ_DEVEL) +.include "${PORTSDIR}/net/licq-devel/Makefile.inc" +.else .include "${PORTSDIR}/net/licq/Makefile.inc" +.endif .include diff --git a/net-im/licq-qt-gui/Makefile b/net-im/licq-qt-gui/Makefile index 272ad66c9293..58781eeb5c26 100644 --- a/net-im/licq-qt-gui/Makefile +++ b/net-im/licq-qt-gui/Makefile @@ -40,5 +40,9 @@ post-install: ${RM} -rf ${PREFIX}/share/licq/qt-gui/locale .include +.if defined(WITH_LICQ_DEVEL) +.include "${PORTSDIR}/net/licq-devel/Makefile.inc" +.else .include "${PORTSDIR}/net/licq/Makefile.inc" +.endif .include diff --git a/net-im/licq-qt-gui/pkg-plist b/net-im/licq-qt-gui/pkg-plist index 3f96f6e8b6fd..cb5ec2200c0b 100644 --- a/net-im/licq-qt-gui/pkg-plist +++ b/net-im/licq-qt-gui/pkg-plist @@ -167,6 +167,7 @@ share/licq/qt-gui/skin.shale/status.png @dirrm share/licq/qt-gui/icons.mark @dirrm share/licq/qt-gui/icons.icq2 @dirrm share/licq/qt-gui/icons.icq +%%LICQ_DEVEL%%@dirrm share/licq/qt-gui/icons.dots @dirrm share/licq/qt-gui/icons.computer @dirrm share/licq/qt-gui/dock.pli @dirrm share/licq/qt-gui/dock.kde2 diff --git a/net-im/licq/Makefile.inc b/net-im/licq/Makefile.inc index 5efe120b1617..5d1ad736d3ec 100644 --- a/net-im/licq/Makefile.inc +++ b/net-im/licq/Makefile.inc @@ -27,3 +27,4 @@ USE_GMAKE= yes USE_NEWGCC= yes USE_BZIP2= yes WRKSRC?= ${WRKDIR}/${DISTNAME}/plugins/${PORTNAME}-${PORTVERSION} +PLIST_SUB+= LICQ_DEVEL="@comment " diff --git a/net/licq-console/Makefile b/net/licq-console/Makefile index 28a0d7bd5ea1..2a3c6e3b7757 100644 --- a/net/licq-console/Makefile +++ b/net/licq-console/Makefile @@ -25,5 +25,9 @@ post-install: ${PREFIX}/etc/licq_console.conf.sample .include +.if defined(WITH_LICQ_DEVEL) +.include "${PORTSDIR}/net/licq-devel/Makefile.inc" +.else .include "${PORTSDIR}/net/licq/Makefile.inc" +.endif .include diff --git a/net/licq-devel/Makefile.inc b/net/licq-devel/Makefile.inc index d636db808af5..2e42d1261362 100644 --- a/net/licq-devel/Makefile.inc +++ b/net/licq-devel/Makefile.inc @@ -48,3 +48,5 @@ pre-patch: .else WRKSRC?= ${WRKDIR}/licq-${TIMESTAMP}/plugins/${PORTNAME} .endif + +PLIST_SUB+= LICQ_DEVEL="" diff --git a/net/licq-qt-gui/Makefile b/net/licq-qt-gui/Makefile index 272ad66c9293..58781eeb5c26 100644 --- a/net/licq-qt-gui/Makefile +++ b/net/licq-qt-gui/Makefile @@ -40,5 +40,9 @@ post-install: ${RM} -rf ${PREFIX}/share/licq/qt-gui/locale .include +.if defined(WITH_LICQ_DEVEL) +.include "${PORTSDIR}/net/licq-devel/Makefile.inc" +.else .include "${PORTSDIR}/net/licq/Makefile.inc" +.endif .include diff --git a/net/licq-qt-gui/pkg-plist b/net/licq-qt-gui/pkg-plist index 3f96f6e8b6fd..cb5ec2200c0b 100644 --- a/net/licq-qt-gui/pkg-plist +++ b/net/licq-qt-gui/pkg-plist @@ -167,6 +167,7 @@ share/licq/qt-gui/skin.shale/status.png @dirrm share/licq/qt-gui/icons.mark @dirrm share/licq/qt-gui/icons.icq2 @dirrm share/licq/qt-gui/icons.icq +%%LICQ_DEVEL%%@dirrm share/licq/qt-gui/icons.dots @dirrm share/licq/qt-gui/icons.computer @dirrm share/licq/qt-gui/dock.pli @dirrm share/licq/qt-gui/dock.kde2 diff --git a/net/licq/Makefile.inc b/net/licq/Makefile.inc index 5efe120b1617..5d1ad736d3ec 100644 --- a/net/licq/Makefile.inc +++ b/net/licq/Makefile.inc @@ -27,3 +27,4 @@ USE_GMAKE= yes USE_NEWGCC= yes USE_BZIP2= yes WRKSRC?= ${WRKDIR}/${DISTNAME}/plugins/${PORTNAME}-${PORTVERSION} +PLIST_SUB+= LICQ_DEVEL="@comment "