aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2004-01-13 09:32:55 +0800
committerglewis <glewis@FreeBSD.org>2004-01-13 09:32:55 +0800
commite80421ad730f8a33b591d38f89534c6ee98d8f0d (patch)
treee046118dcc26d5b7534b74f53d1949a8dd479e9e
parentb058dbc00e8c5db92de8d9e5dd1a42cef2451f41 (diff)
downloadfreebsd-ports-gnome-e80421ad730f8a33b591d38f89534c6ee98d8f0d.tar.gz
freebsd-ports-gnome-e80421ad730f8a33b591d38f89534c6ee98d8f0d.tar.zst
freebsd-ports-gnome-e80421ad730f8a33b591d38f89534c6ee98d8f0d.zip
. Add a WITHOUT_GNOME knob.
-rw-r--r--net/linphone-base/Makefile19
-rw-r--r--net/linphone-base/pkg-plist108
-rw-r--r--net/linphone/Makefile19
-rw-r--r--net/linphone/pkg-plist108
4 files changed, 140 insertions, 114 deletions
diff --git a/net/linphone-base/Makefile b/net/linphone-base/Makefile
index 9bf0502e6143..e5ff4731f1ca 100644
--- a/net/linphone-base/Makefile
+++ b/net/linphone-base/Makefile
@@ -19,13 +19,26 @@ LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm \
speex.2:${PORTSDIR}/audio/speex \
osip.9:${PORTSDIR}/net/libosip
-USE_X_PREFIX= yes
USE_GMAKE= yes
-USE_GNOME= gnomehack gnomeprefix gnomepanel
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-CONFIGURE_ARGS= --enable-platform-gnome-2 --disable-ipv6
+CONFIGURE_ARGS= --disable-ipv6
+.ifdef WITHOUT_GNOME
+CONFIGURE_ARGS+=--enable-gnome-ui=no \
+ --with-html-dir=${DOCSDIR}
+PLIST_SUB+= GNOME="@comment " \
+ GNOME_PATH="" \
+ HTMLDOCSDIR="${DOCSDIR:S,^${PREFIX}/,,}"
+.else
+USE_X_PREFIX= yes
+USE_GNOME= gnomehack gnomeprefix gnomepanel
+DOCSDIR= ${GNOME_HTML_DIR}
+CONFIGURE_ARGS= --enable-gnome-ui=yes
+PLIST_SUB+= GNOME="" \
+ GNOME_PATH="gnome/" \
+ HTMLDOCSDIR="${GNOME_HTML_DIR:S,^${PREFIX}/,,}"
+.endif
INSTALLS_SHLIB= yes
MAN1= linphone.1 linphonec.1 sipomatic.1
diff --git a/net/linphone-base/pkg-plist b/net/linphone-base/pkg-plist
index 7215d172cdfc..04d8816161e5 100644
--- a/net/linphone-base/pkg-plist
+++ b/net/linphone-base/pkg-plist
@@ -1,4 +1,4 @@
-bin/linphone
+%%GNOME%%bin/linphone
bin/linphonec
bin/sipomatic
include/linphone/config.h
@@ -51,39 +51,39 @@ lib/libosipalloc.so.0
lib/libosipua.a
lib/libosipua.so
lib/libosipua.so.2
-libdata/bonobo/servers/GNOME_LinphoneApplet.server
+%%GNOME%%libdata/bonobo/servers/GNOME_LinphoneApplet.server
libdata/pkgconfig/linphone.pc
-libexec/linphone_applet
-share/doc/mediastreamer/book1.html
-share/doc/mediastreamer/coreapi.html
-share/doc/mediastreamer/index.sgml
-share/doc/mediastreamer/mediastreamer-filters.html
-share/doc/mediastreamer/mediastreamer-msringplayer.html
-share/doc/mediastreamer/mediastreamer-mssync.html
-share/doc/mediastreamer/mediastreamer-running-processing-chains.html
-share/doc/mediastreamer/msfilterimplementations.html
-share/doc/mediastreamer/userapi.html
-share/doc/ortp/book1.html
-share/doc/ortp/index.sgml
-share/doc/ortp/ortp-library-management-functions.html
-share/doc/ortp/ortp-multiplexing-sessions-(in-a-one-thread-design).html
-share/doc/ortp/ortp-rtp-payloads-and-profiles.html
-share/doc/ortp/ortp-rtpsession-api.html
-share/doc/ortp/ortp-stack-management-functions.html
-share/doc/ortp/ortp-telephone-events-(rfc2833)-.html
-share/doc/ortp/ortpapi.html
-share/doc/osipua/book1.html
-share/doc/osipua/index.sgml
-share/doc/osipua/osipcallleg.html
-share/doc/osipua/osipua--registrationctxt-api-.html
-share/doc/osipua/osipua-osipcallleg-private-api.html
-share/doc/osipua/osipua-osipcallleg-public-api.html
-share/doc/osipua/osipua-osipua-private-api.html
-share/doc/osipua/osipua-osipua-public-api.html
-share/doc/osipua/osipua.html
-share/doc/osipua/registrationctxt.html
+%%GNOME%%libexec/linphone_applet
+%%HTMLDOCSDIR%%/mediastreamer/book1.html
+%%HTMLDOCSDIR%%/mediastreamer/coreapi.html
+%%HTMLDOCSDIR%%/mediastreamer/index.sgml
+%%HTMLDOCSDIR%%/mediastreamer/mediastreamer-filters.html
+%%HTMLDOCSDIR%%/mediastreamer/mediastreamer-msringplayer.html
+%%HTMLDOCSDIR%%/mediastreamer/mediastreamer-mssync.html
+%%HTMLDOCSDIR%%/mediastreamer/mediastreamer-running-processing-chains.html
+%%HTMLDOCSDIR%%/mediastreamer/msfilterimplementations.html
+%%HTMLDOCSDIR%%/mediastreamer/userapi.html
+%%HTMLDOCSDIR%%/ortp/book1.html
+%%HTMLDOCSDIR%%/ortp/index.sgml
+%%HTMLDOCSDIR%%/ortp/ortp-library-management-functions.html
+%%HTMLDOCSDIR%%/ortp/ortp-multiplexing-sessions-(in-a-one-thread-design).html
+%%HTMLDOCSDIR%%/ortp/ortp-rtp-payloads-and-profiles.html
+%%HTMLDOCSDIR%%/ortp/ortp-rtpsession-api.html
+%%HTMLDOCSDIR%%/ortp/ortp-stack-management-functions.html
+%%HTMLDOCSDIR%%/ortp/ortp-telephone-events-(rfc2833)-.html
+%%HTMLDOCSDIR%%/ortp/ortpapi.html
+%%HTMLDOCSDIR%%/osipua/book1.html
+%%HTMLDOCSDIR%%/osipua/index.sgml
+%%HTMLDOCSDIR%%/osipua/osipcallleg.html
+%%HTMLDOCSDIR%%/osipua/osipua--registrationctxt-api-.html
+%%HTMLDOCSDIR%%/osipua/osipua-osipcallleg-private-api.html
+%%HTMLDOCSDIR%%/osipua/osipua-osipcallleg-public-api.html
+%%HTMLDOCSDIR%%/osipua/osipua-osipua-private-api.html
+%%HTMLDOCSDIR%%/osipua/osipua-osipua-public-api.html
+%%HTMLDOCSDIR%%/osipua/osipua.html
+%%HTMLDOCSDIR%%/osipua/registrationctxt.html
share/gnome/apps/Internet/linphone.desktop
-share/gnome/gnome-2.0/ui/GNOME_LinphoneApplet.xml
+%%GNOME%%share/gnome/gnome-2.0/ui/GNOME_LinphoneApplet.xml
share/gnome/help/linphone/C/docbook.css
share/gnome/help/linphone/C/index.html
share/gnome/help/linphone/C/params.html
@@ -132,38 +132,38 @@ share/gnome/help/linphone/ja/x166.html
share/gnome/help/linphone/ja/x182.html
share/gnome/help/linphone/ja/x25.html
share/gnome/help/linphone/ja/x35.html
-share/gnome/linphonec/linphonec
-share/gnome/pixmaps/linphone/linphone.png
-share/gnome/pixmaps/linphone/linphone2.png
-share/gnome/pixmaps/linphone/linphone2.xpm
-share/gnome/sounds/linphone/hello16000.wav
-share/gnome/sounds/linphone/hello8000.wav
-share/gnome/sounds/linphone/ringback.wav
-share/gnome/sounds/linphone/rings/bigben.wav
-share/gnome/sounds/linphone/rings/oldphone.wav
-share/gnome/sounds/linphone/rings/orig.wav
-share/gnome/sounds/linphone/rings/rock.wav
-share/gnome/sounds/linphone/rings/sweet.wav
-share/gnome/sounds/linphone/rings/synth.wav
-share/gnome/sounds/linphone/rings/tapping.wav
-share/gnome/sounds/linphone/rings/toy.wav
+share/%%GNOME_PATH%%linphonec/linphonec
+share/%%GNOME_PATH%%pixmaps/linphone/linphone.png
+share/%%GNOME_PATH%%pixmaps/linphone/linphone2.png
+share/%%GNOME_PATH%%pixmaps/linphone/linphone2.xpm
+share/%%GNOME_PATH%%sounds/linphone/hello16000.wav
+share/%%GNOME_PATH%%sounds/linphone/hello8000.wav
+share/%%GNOME_PATH%%sounds/linphone/ringback.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/bigben.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/oldphone.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/orig.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/rock.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/sweet.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/synth.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/tapping.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/toy.wav
share/locale/de/LC_MESSAGES/linphone.mo
share/locale/es/LC_MESSAGES/linphone.mo
share/locale/fr/LC_MESSAGES/linphone.mo
share/locale/it/LC_MESSAGES/linphone.mo
share/locale/ja/LC_MESSAGES/linphone.mo
share/locale/pl/LC_MESSAGES/linphone.mo
-@dirrm share/gnome/sounds/linphone/rings
-@dirrm share/gnome/sounds/linphone
-@dirrm share/gnome/pixmaps/linphone
-@dirrm share/gnome/linphonec
+@dirrm share/%%GNOME_PATH%%sounds/linphone/rings
+@dirrm share/%%GNOME_PATH%%sounds/linphone
+@dirrm share/%%GNOME_PATH%%pixmaps/linphone
+@dirrm share/%%GNOME_PATH%%linphonec
@dirrm share/gnome/help/linphone/ja
@dirrm share/gnome/help/linphone/it
@dirrm share/gnome/help/linphone/fr
@dirrm share/gnome/help/linphone/C
@dirrm share/gnome/help/linphone
-@dirrm share/doc/osipua
-@dirrm share/doc/ortp
-@dirrm share/doc/mediastreamer
+@dirrm %%HTMLDOCSDIR%%/osipua
+@dirrm %%HTMLDOCSDIR%%/ortp
+@dirrm %%HTMLDOCSDIR%%/mediastreamer
@dirrm include/osipua
@dirrm include/ortp
diff --git a/net/linphone/Makefile b/net/linphone/Makefile
index 9bf0502e6143..e5ff4731f1ca 100644
--- a/net/linphone/Makefile
+++ b/net/linphone/Makefile
@@ -19,13 +19,26 @@ LIB_DEPENDS= gsm.1:${PORTSDIR}/audio/gsm \
speex.2:${PORTSDIR}/audio/speex \
osip.9:${PORTSDIR}/net/libosip
-USE_X_PREFIX= yes
USE_GMAKE= yes
-USE_GNOME= gnomehack gnomeprefix gnomepanel
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-CONFIGURE_ARGS= --enable-platform-gnome-2 --disable-ipv6
+CONFIGURE_ARGS= --disable-ipv6
+.ifdef WITHOUT_GNOME
+CONFIGURE_ARGS+=--enable-gnome-ui=no \
+ --with-html-dir=${DOCSDIR}
+PLIST_SUB+= GNOME="@comment " \
+ GNOME_PATH="" \
+ HTMLDOCSDIR="${DOCSDIR:S,^${PREFIX}/,,}"
+.else
+USE_X_PREFIX= yes
+USE_GNOME= gnomehack gnomeprefix gnomepanel
+DOCSDIR= ${GNOME_HTML_DIR}
+CONFIGURE_ARGS= --enable-gnome-ui=yes
+PLIST_SUB+= GNOME="" \
+ GNOME_PATH="gnome/" \
+ HTMLDOCSDIR="${GNOME_HTML_DIR:S,^${PREFIX}/,,}"
+.endif
INSTALLS_SHLIB= yes
MAN1= linphone.1 linphonec.1 sipomatic.1
diff --git a/net/linphone/pkg-plist b/net/linphone/pkg-plist
index 7215d172cdfc..04d8816161e5 100644
--- a/net/linphone/pkg-plist
+++ b/net/linphone/pkg-plist
@@ -1,4 +1,4 @@
-bin/linphone
+%%GNOME%%bin/linphone
bin/linphonec
bin/sipomatic
include/linphone/config.h
@@ -51,39 +51,39 @@ lib/libosipalloc.so.0
lib/libosipua.a
lib/libosipua.so
lib/libosipua.so.2
-libdata/bonobo/servers/GNOME_LinphoneApplet.server
+%%GNOME%%libdata/bonobo/servers/GNOME_LinphoneApplet.server
libdata/pkgconfig/linphone.pc
-libexec/linphone_applet
-share/doc/mediastreamer/book1.html
-share/doc/mediastreamer/coreapi.html
-share/doc/mediastreamer/index.sgml
-share/doc/mediastreamer/mediastreamer-filters.html
-share/doc/mediastreamer/mediastreamer-msringplayer.html
-share/doc/mediastreamer/mediastreamer-mssync.html
-share/doc/mediastreamer/mediastreamer-running-processing-chains.html
-share/doc/mediastreamer/msfilterimplementations.html
-share/doc/mediastreamer/userapi.html
-share/doc/ortp/book1.html
-share/doc/ortp/index.sgml
-share/doc/ortp/ortp-library-management-functions.html
-share/doc/ortp/ortp-multiplexing-sessions-(in-a-one-thread-design).html
-share/doc/ortp/ortp-rtp-payloads-and-profiles.html
-share/doc/ortp/ortp-rtpsession-api.html
-share/doc/ortp/ortp-stack-management-functions.html
-share/doc/ortp/ortp-telephone-events-(rfc2833)-.html
-share/doc/ortp/ortpapi.html
-share/doc/osipua/book1.html
-share/doc/osipua/index.sgml
-share/doc/osipua/osipcallleg.html
-share/doc/osipua/osipua--registrationctxt-api-.html
-share/doc/osipua/osipua-osipcallleg-private-api.html
-share/doc/osipua/osipua-osipcallleg-public-api.html
-share/doc/osipua/osipua-osipua-private-api.html
-share/doc/osipua/osipua-osipua-public-api.html
-share/doc/osipua/osipua.html
-share/doc/osipua/registrationctxt.html
+%%GNOME%%libexec/linphone_applet
+%%HTMLDOCSDIR%%/mediastreamer/book1.html
+%%HTMLDOCSDIR%%/mediastreamer/coreapi.html
+%%HTMLDOCSDIR%%/mediastreamer/index.sgml
+%%HTMLDOCSDIR%%/mediastreamer/mediastreamer-filters.html
+%%HTMLDOCSDIR%%/mediastreamer/mediastreamer-msringplayer.html
+%%HTMLDOCSDIR%%/mediastreamer/mediastreamer-mssync.html
+%%HTMLDOCSDIR%%/mediastreamer/mediastreamer-running-processing-chains.html
+%%HTMLDOCSDIR%%/mediastreamer/msfilterimplementations.html
+%%HTMLDOCSDIR%%/mediastreamer/userapi.html
+%%HTMLDOCSDIR%%/ortp/book1.html
+%%HTMLDOCSDIR%%/ortp/index.sgml
+%%HTMLDOCSDIR%%/ortp/ortp-library-management-functions.html
+%%HTMLDOCSDIR%%/ortp/ortp-multiplexing-sessions-(in-a-one-thread-design).html
+%%HTMLDOCSDIR%%/ortp/ortp-rtp-payloads-and-profiles.html
+%%HTMLDOCSDIR%%/ortp/ortp-rtpsession-api.html
+%%HTMLDOCSDIR%%/ortp/ortp-stack-management-functions.html
+%%HTMLDOCSDIR%%/ortp/ortp-telephone-events-(rfc2833)-.html
+%%HTMLDOCSDIR%%/ortp/ortpapi.html
+%%HTMLDOCSDIR%%/osipua/book1.html
+%%HTMLDOCSDIR%%/osipua/index.sgml
+%%HTMLDOCSDIR%%/osipua/osipcallleg.html
+%%HTMLDOCSDIR%%/osipua/osipua--registrationctxt-api-.html
+%%HTMLDOCSDIR%%/osipua/osipua-osipcallleg-private-api.html
+%%HTMLDOCSDIR%%/osipua/osipua-osipcallleg-public-api.html
+%%HTMLDOCSDIR%%/osipua/osipua-osipua-private-api.html
+%%HTMLDOCSDIR%%/osipua/osipua-osipua-public-api.html
+%%HTMLDOCSDIR%%/osipua/osipua.html
+%%HTMLDOCSDIR%%/osipua/registrationctxt.html
share/gnome/apps/Internet/linphone.desktop
-share/gnome/gnome-2.0/ui/GNOME_LinphoneApplet.xml
+%%GNOME%%share/gnome/gnome-2.0/ui/GNOME_LinphoneApplet.xml
share/gnome/help/linphone/C/docbook.css
share/gnome/help/linphone/C/index.html
share/gnome/help/linphone/C/params.html
@@ -132,38 +132,38 @@ share/gnome/help/linphone/ja/x166.html
share/gnome/help/linphone/ja/x182.html
share/gnome/help/linphone/ja/x25.html
share/gnome/help/linphone/ja/x35.html
-share/gnome/linphonec/linphonec
-share/gnome/pixmaps/linphone/linphone.png
-share/gnome/pixmaps/linphone/linphone2.png
-share/gnome/pixmaps/linphone/linphone2.xpm
-share/gnome/sounds/linphone/hello16000.wav
-share/gnome/sounds/linphone/hello8000.wav
-share/gnome/sounds/linphone/ringback.wav
-share/gnome/sounds/linphone/rings/bigben.wav
-share/gnome/sounds/linphone/rings/oldphone.wav
-share/gnome/sounds/linphone/rings/orig.wav
-share/gnome/sounds/linphone/rings/rock.wav
-share/gnome/sounds/linphone/rings/sweet.wav
-share/gnome/sounds/linphone/rings/synth.wav
-share/gnome/sounds/linphone/rings/tapping.wav
-share/gnome/sounds/linphone/rings/toy.wav
+share/%%GNOME_PATH%%linphonec/linphonec
+share/%%GNOME_PATH%%pixmaps/linphone/linphone.png
+share/%%GNOME_PATH%%pixmaps/linphone/linphone2.png
+share/%%GNOME_PATH%%pixmaps/linphone/linphone2.xpm
+share/%%GNOME_PATH%%sounds/linphone/hello16000.wav
+share/%%GNOME_PATH%%sounds/linphone/hello8000.wav
+share/%%GNOME_PATH%%sounds/linphone/ringback.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/bigben.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/oldphone.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/orig.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/rock.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/sweet.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/synth.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/tapping.wav
+share/%%GNOME_PATH%%sounds/linphone/rings/toy.wav
share/locale/de/LC_MESSAGES/linphone.mo
share/locale/es/LC_MESSAGES/linphone.mo
share/locale/fr/LC_MESSAGES/linphone.mo
share/locale/it/LC_MESSAGES/linphone.mo
share/locale/ja/LC_MESSAGES/linphone.mo
share/locale/pl/LC_MESSAGES/linphone.mo
-@dirrm share/gnome/sounds/linphone/rings
-@dirrm share/gnome/sounds/linphone
-@dirrm share/gnome/pixmaps/linphone
-@dirrm share/gnome/linphonec
+@dirrm share/%%GNOME_PATH%%sounds/linphone/rings
+@dirrm share/%%GNOME_PATH%%sounds/linphone
+@dirrm share/%%GNOME_PATH%%pixmaps/linphone
+@dirrm share/%%GNOME_PATH%%linphonec
@dirrm share/gnome/help/linphone/ja
@dirrm share/gnome/help/linphone/it
@dirrm share/gnome/help/linphone/fr
@dirrm share/gnome/help/linphone/C
@dirrm share/gnome/help/linphone
-@dirrm share/doc/osipua
-@dirrm share/doc/ortp
-@dirrm share/doc/mediastreamer
+@dirrm %%HTMLDOCSDIR%%/osipua
+@dirrm %%HTMLDOCSDIR%%/ortp
+@dirrm %%HTMLDOCSDIR%%/mediastreamer
@dirrm include/osipua
@dirrm include/ortp