aboutsummaryrefslogtreecommitdiffstats
path: root/astro
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
committermat <mat@FreeBSD.org>2015-08-19 21:29:59 +0800
commit9d30f78a00bed11384c7259f662e9352754275db (patch)
treeac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /astro
parent996088dedaf9d22bcd7c90caa96d33c0f68b08e7 (diff)
downloadfreebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.gz
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.zst
freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.zip
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D3412?
Diffstat (limited to 'astro')
-rw-r--r--astro/boinc-astropulse/Makefile9
-rw-r--r--astro/boinc-setiathome-v7/Makefile10
-rw-r--r--astro/google-earth/Makefile19
-rw-r--r--astro/gpsd/Makefile215
-rw-r--r--astro/gpsdrive/Makefile5
-rw-r--r--astro/gpsman/Makefile10
-rw-r--r--astro/merkaartor/Makefile17
-rw-r--r--astro/osmium/Makefile18
-rw-r--r--astro/viking/Makefile7
-rw-r--r--astro/xtide/Makefile6
10 files changed, 77 insertions, 239 deletions
diff --git a/astro/boinc-astropulse/Makefile b/astro/boinc-astropulse/Makefile
index 830c34b298cd..470a8e675ce7 100644
--- a/astro/boinc-astropulse/Makefile
+++ b/astro/boinc-astropulse/Makefile
@@ -42,11 +42,7 @@ X11_USE= GL=gl,glu,glut \
XORG=ice,sm,x11,xau,xcb,xext,xi,xdamage,xdmcp,xfixes,xmu,xt,xxf86vm
X11_CONFIGURE_ENABLE= graphics
-.include <bsd.port.options.mk>
-
-.if ! ${PORT_OPTIONS:MX11}
-BUILD_DEPENDS+= ${LOCALBASE}/include/boinc/std_fixes.h:${PORTSDIR}/net/boinc-client
-.endif
+X11_BUILD_DEPENDS_OFF= ${LOCALBASE}/include/boinc/std_fixes.h:${PORTSDIR}/net/boinc-client
SETI_WORK!= cd ${.CURDIR}/../boinc-setiathome-v7 && ${MAKE} -V WRKSRC
CONFIGURE_ENV+= BOINCDIR="${NONEXISTENT}" \
@@ -76,9 +72,8 @@ do-install:
${INSTALL} -d ${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SETI_SITE}
${INSTALL_PROGRAM} ${WRKSRC}/${AP_BINARY} \
${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SETI_SITE}/
-.if ${PORT_OPTIONS:MX11}
+do-install-X11-on:
${INSTALL_PROGRAM} ${WRKSRC}/ap_graphics \
${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SETI_SITE}/
-.endif
.include <bsd.port.mk>
diff --git a/astro/boinc-setiathome-v7/Makefile b/astro/boinc-setiathome-v7/Makefile
index 54182fb4da35..868f53a9a700 100644
--- a/astro/boinc-setiathome-v7/Makefile
+++ b/astro/boinc-setiathome-v7/Makefile
@@ -45,11 +45,7 @@ X11_USE= GL=gl,glu,glut \
XORG=ice,sm,x11,xau,xcb,xext,xi,xdamage,xdmcp,xfixes,xmu,xt,xxf86vm
X11_CONFIGURE_ENABLE= graphics
-.include <bsd.port.options.mk>
-
-.if ! ${PORT_OPTIONS:MX11}
-BUILD_DEPENDS+= ${LOCALBASE}/include/boinc/std_fixes.h:${PORTSDIR}/net/boinc-client
-.endif
+X11_BUILD_DEPENDS_OFF= ${LOCALBASE}/include/boinc/std_fixes.h:${PORTSDIR}/net/boinc-client
.if ${ARCH} == i386 || ${ARCH} == amd64
# comment out if world is built with clang and port with gcc
@@ -101,8 +97,8 @@ do-install:
${INSTALL} -d ${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SETI_SITE}
${INSTALL_PROGRAM} ${WRKSRC}/client/${SETI_BINARY} \
${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SETI_SITE}/
-.if ${PORT_OPTIONS:MX11}
+do-install-X11-on:
${INSTALL_PROGRAM} ${WRKSRC}/client/seti_graphics \
${STAGEDIR}${BOINC_CLIENT_HOME}/projects/${SETI_SITE}/
-.endif
+
.include <bsd.port.mk>
diff --git a/astro/google-earth/Makefile b/astro/google-earth/Makefile
index c1f5e2558818..9d02db6239eb 100644
--- a/astro/google-earth/Makefile
+++ b/astro/google-earth/Makefile
@@ -28,17 +28,11 @@ USES= perl5 shared-mime-info desktop-file-utils
USE_PERL5= patch build
#SUB_FILES= bin/googleearth
-.include <bsd.port.pre.mk>
-.include <bsd.port.options.mk>
UNMAKESELF= ${LOCALBASE}/bin/unmakeself
-.if ${PORT_OPTIONS:MNVIDIA}
-RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
-.else
-USE_LINUX_APPS+= dri libpciaccess
-LIBGL_ALWAYS_SOFTWARE=LIBGL_ALWAYS_SOFTWARE=yes
-.endif
+NVIDIA_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
+NVIDIA_USE_OFF= LINUX_APPS=dri,libpciaccess
# Fixed by the first post-patch target line? Also, linprocfs needs to be mounted.
#.if ${OSVERSION} >= 900000 && ${ARCH} == "amd64"
@@ -54,14 +48,17 @@ do-extract:
post-patch:
@${REINPLACE_CMD} -e '/OS.*=/s|linux|FreeBSD|' ${WRKSRC}/drivers.ini
- @${REINPLACE_CMD} -e 's|^# Set the home.*|GOOGLEEARTH_DATA_PATH=${DATADIR}|; \
- s|%%LIBGL_ALWAYS_SOFTWARE%%|${LIBGL_ALWAYS_SOFTWARE}|' ${WRKSRC}/bin/googleearth
+ @${REINPLACE_CMD} -e 's|^# Set the home.*|GOOGLEEARTH_DATA_PATH=${DATADIR}|' ${WRKSRC}/bin/googleearth
@${REINPLACE_CMD} -i "" -e "s|^# Let's boogie.*|rm -f ${LINUXBASE}\$${HOME}/.googleearth/instance-running-lock|" ${WRKSRC}/bin/googleearth
@${REINPLACE_CMD} -i "" -e 's/^TMPPATH.*/exit 0/' ${WRKSRC}/postinstall.sh
@${REINPLACE_CMD} -i "" -e 's|\"\$$SETUP_INSTALLPATH/|\"${WRKSRC}/|' ${WRKSRC}/postinstall.sh
@${REINPLACE_CMD} -i "" -e 's|\$$SETUP_INSTALLPATH/googleearth |${PREFIX}/bin/googleearth |' ${WRKSRC}/postinstall.sh
${RM} ${WRKSRC}/libcurl.so.4
${PERL} -i -pe 's|/lib/ld-lsb.so.3\0\0\0|/lib/ld-linux.so.2\0|' ${WRKSRC}/googleearth-bin
+post-patch-NVIDIA-on:
+ @${REINPLACE_CMD} 's|%%LIBGL_ALWAYS_SOFTWARE%%||' ${WRKSRC}/bin/googleearth
+post-patch-NVIDIA-off:
+ @${REINPLACE_CMD} 's|%%LIBGL_ALWAYS_SOFTWARE%%|LIBGL_ALWAYS_SOFTWARE=yes|' ${WRKSRC}/bin/googleearth
do-build:
@${SETENV} SETUP_INSTALLPATH=${DATADIR} ${WRKSRC}/postinstall.sh
@@ -83,4 +80,4 @@ do-install:
${LN} -sf ${DATADIR}/bin/googleearth \
${STAGEDIR}${PREFIX}/bin/
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/astro/gpsd/Makefile b/astro/gpsd/Makefile
index 5346ecd199ac..c3d8a22544bd 100644
--- a/astro/gpsd/Makefile
+++ b/astro/gpsd/Makefile
@@ -75,189 +75,68 @@ QTBIND_DESC= build QT bindings
UBLOX_DESC= u-blox protocol support
USB_DESC= libusb support for USB devices
-.include <bsd.port.options.mk>
-
# Options related to GPS protocols
-.if ! ${PORT_OPTIONS:MNMEA0183}
-MAKE_ARGS+= nmea0183=no
-.endif
-
-.if ! ${PORT_OPTIONS:MASHTECH}
-MAKE_ARGS+= ashtech=no
-.endif
-
-.if ! ${PORT_OPTIONS:MEARTHMATE}
-MAKE_ARGS+= earthmate=no
-.endif
-
-.if ! ${PORT_OPTIONS:MEVERMORE}
-MAKE_ARGS+= evermore=no
-.endif
-
-.if ! ${PORT_OPTIONS:MFURY}
-MAKE_ARGS+= fury=no
-.endif
-
-.if ! ${PORT_OPTIONS:MFV18}
-MAKE_ARGS+= fv18=no
-.endif
-
-.if ! ${PORT_OPTIONS:MGARMIN}
-MAKE_ARGS+= garmin=no
-.endif
-
-.if ! ${PORT_OPTIONS:MGARMINTXT}
-MAKE_ARGS+= garmintxt=no
-.endif
-
-.if ! ${PORT_OPTIONS:MGEOSTAR}
-MAKE_ARGS+= geostar=no
-.endif
-
-.if ! ${PORT_OPTIONS:MITRAX}
-MAKE_ARGS+= itrax=no
-.endif
-
-.if ! ${PORT_OPTIONS:MMTK}
-MAKE_ARGS+= mtk3301=no
-.endif
-
-.if ! ${PORT_OPTIONS:MNAVCOM}
-MAKE_ARGS+= navcom=no
-.endif
-
-.if ! ${PORT_OPTIONS:MONCORE}
-MAKE_ARGS+= oncore=no
-.endif
-
-.if ! ${PORT_OPTIONS:MSIRF}
-MAKE_ARGS+= sirf=no
-.endif
-
-.if ! ${PORT_OPTIONS:MSUPERSTARII}
-MAKE_ARGS+= superstar2=no
-.endif
-
-.if ! ${PORT_OPTIONS:MTNT}
-MAKE_ARGS+= tnt=no
-.endif
-
-.if ! ${PORT_OPTIONS:MTRIPMATE}
-MAKE_ARGS+= tripmate=no
-.endif
-
-.if ! ${PORT_OPTIONS:MTSIP}
-MAKE_ARGS+= tsip=no
-.endif
-
-.if ! ${PORT_OPTIONS:MUBLOX}
-MAKE_ARGS+= ublox=no
-.endif
+NMEA0183_MAKE_ARGS_OFF= nmea0183=no
+ASHTECH_MAKE_ARGS_OFF= ashtech=no
+EARTHMATE_MAKE_ARGS_OFF= earthmate=no
+EVERMORE_MAKE_ARGS_OFF= evermore=no
+FURY_MAKE_ARGS_OFF= fury=no
+FV18_MAKE_ARGS_OFF= fv18=no
+GARMIN_MAKE_ARGS_OFF= garmin=no
+GARMINTXT_MAKE_ARGS_OFF= garmintxt=no
+GEOSTAR_MAKE_ARGS_OFF= geostar=no
+ITRAX_MAKE_ARGS_OFF= itrax=no
+MTK_MAKE_ARGS_OFF= mtk3301=no
+NAVCOM_MAKE_ARGS_OFF= navcom=no
+ONCORE_MAKE_ARGS_OFF= oncore=no
+SIRF_MAKE_ARGS_OFF= sirf=no
+SUPERSTARII_MAKE_ARGS_OFF= superstar2=no
+TNT_MAKE_ARGS_OFF= tnt=no
+TRIPMATE_MAKE_ARGS_OFF= tripmate=no
+TSIP_MAKE_ARGS_OFF= tsip=no
+UBLOX_MAKE_ARGS_OFF= ublox=no
# Options related to Non-GPS protocols
-.if ! ${PORT_OPTIONS:MAIVDM}
-MAKE_ARGS+= aivdm=no
-.endif
-
-.if ! ${PORT_OPTIONS:MGPSCLOCK}
-MAKE_ARGS+= gpsclock=no
-.endif
-
-.if ! ${PORT_OPTIONS:MNTRIP}
-MAKE_ARGS+= ntrip=no
-.endif
-
-.if ! ${PORT_OPTIONS:MOCEANSERVER}
-MAKE_ARGS+= oceanserver=no
-.endif
-
-.if ! ${PORT_OPTIONS:MRTCM104V2}
-MAKE_ARGS+= rtcm104v2=no
-.endif
-
-.if ! ${PORT_OPTIONS:MRTCM104V3}
-MAKE_ARGS+= rtcm104v3=no
-.endif
+AIVDM_MAKE_ARGS_OFF= aivdm=no
+GPSCLOCK_MAKE_ARGS_OFF= gpsclock=no
+NTRIP_MAKE_ARGS_OFF= ntrip=no
+OCEANSERVER_MAKE_ARGS_OFF= oceanserver=no
+RTCM104V2_MAKE_ARGS_OFF= rtcm104v2=no
+RTCM104V3_MAKE_ARGS_OFF= rtcm104v3=no
# Time service
-.if ! ${PORT_OPTIONS:MNTP}
-MAKE_ARGS+= ntp=no
-.endif
-
-.if ! ${PORT_OPTIONS:MNTPSHM}
-MAKE_ARGS+= ntpshm=no
-.endif
-
-.if ! ${PORT_OPTIONS:MPPS}
-MAKE_ARGS+= pps=no
-.else
-. if ! ${PORT_OPTIONS:MNTPSHM}
-IGNORE= PPS requires NTPSHM
-. endif
-.endif
+NTP_MAKE_ARGS_OFF= ntp=no
+NTPSHM_MAKE_ARGS_OFF= ntpshm=no
+PPS_MAKE_ARGS_OFF= pps=no
+PPS_IMPLIES= NTPSHM
# Export methods
-.if ! ${PORT_OPTIONS:MSOCKEXPORT}
-MAKE_ARGS+= socket_export=no
-.endif
-
-.if ${PORT_OPTIONS:MDBUS}
-LIB_DEPENDS+= libdbus-1.so:${PORTSDIR}/devel/dbus
-MAKE_ARGS+= dbus_export=yes
-.endif
-
-.if ! ${PORT_OPTIONS:MSHMEXPORT}
-MAKE_ARGS+= shm_export=no
-.endif
+SOCKEXPORT_MAKE_ARGS_OFF= socket_export=no
+DBUS_LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus
+DBUS_MAKE_ARGS= dbus_export=yes
+SHMEXPORT_MAKE_ARGS_OFF= shm_export=no
# Communication
-.if ! ${PORT_OPTIONS:MUSB}
-MAKE_ARGS+= usb=no
-.endif
-
-.if ! ${PORT_OPTIONS:MIPV6}
-MAKE_ARGS+= ipv6=no
-.endif
-
-.if ! ${PORT_OPTIONS:MNETFEED}
-MAKE_ARGS+= netfeed=no
-.endif
-
-.if ! ${PORT_OPTIONS:MPASSTHROUGH}
-MAKE_ARGS+= passthrough=no
-.endif
+USB_MAKE_ARGS_OFF= usb=no
+IPV6_MAKE_ARGS_OFF= ipv6=no
+NETFEED_MAKE_ARGS_OFF= netfeed=no
+PASSTHROUGH_MAKE_ARGS_OFF= passthrough=no
# Other daemon options
-.if ! ${PORT_OPTIONS:MTIMING}
-MAKE_ARGS+= timing=no
-.endif
+TIMING_MAKE_ARGS_OFF= timing=no
# Client-side options
-.if ! ${PORT_OPTIONS:MNCURSES}
-MAKE_ARGS+= ncurses=no
-.endif
-
-.if ${PORT_OPTIONS:MQTBIND}
-USE_QT4= network
-MAKE_ARGS+= qt=yes
-PLIST_SUB+= QTBIND=""
-.else
-MAKE_ARGS+= qt=no
-PLIST_SUB+= QTBIND="@comment "
-.endif
-
-.if ! ${PORT_OPTIONS:MRECONFIGURE}
-MAKE_ARGS+= reconfigure=no
-.endif
-
-.if ! ${PORT_OPTIONS:MCPPBIND}
-MAKE_ARGS+= libgpsmm=no
-.endif
+NCURSES_MAKE_ARGS_OFF= ncurses=no
+QTBIND_USE= QT4=network
+QTBIND_MAKE_ARGS= qt=yes
+QTBIND_MAKE_ARGS_OFF= qt=no
+QTBIND_PLIST_SUB= QTBIND=""
+QTBIND_PLIST_SUB_OFF= QTBIND="@comment "
+RECONFIGURE_MAKE_ARGS_OFF= reconfigure=no
+CPPBIND_MAKE_ARGS_OFF= libgpsmm=no
# Build control
-.if ${PORT_OPTIONS:MPROFILING}
-MAKE_ARGS+= profiling=yes
-.endif
+PROFILING_MAKE_ARGS= profiling=yes
# generates .py[co] files for installed modules
# if that's not done, ${PYTHON_SITELIBDIR}/gps will be polluted
diff --git a/astro/gpsdrive/Makefile b/astro/gpsdrive/Makefile
index 4450f86ac0d3..b4ac29bf4507 100644
--- a/astro/gpsdrive/Makefile
+++ b/astro/gpsdrive/Makefile
@@ -36,13 +36,10 @@ OPTIONS_SUB= yes
NLS_USES= gettext
NLS_USES_OFF= gettext-tools
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} 's/test "$$CC" = "gcc"/false/' ${WRKSRC}/configure
-.if empty(PORT_OPTIONS:MNLS)
+post-patch-NLS-off:
@${REINPLACE_CMD} 's|SUBDIRS = src po man|SUBDIRS = src man|' \
${WRKSRC}/Makefile.in
-.endif
.include <bsd.port.mk>
diff --git a/astro/gpsman/Makefile b/astro/gpsman/Makefile
index fb4387b47f00..aeb42bb1cfed 100644
--- a/astro/gpsman/Makefile
+++ b/astro/gpsman/Makefile
@@ -19,13 +19,9 @@ PLIST_SUB+= GPSMANDIR=${GPSMANDIR:S/${PREFIX}\///}
NO_BUILD= yes
PORTDOCS= *
-.include <bsd.port.options.mk>
-
GPSMAN_DEFAULT_PORT?= /dev/cuau0
-.if ${PORT_OPTIONS:MDOCS}
-SUB_FILES= pkg-message
-.endif
+DOCS_SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} "s|/dev/ttyS0|${GPSMAN_DEFAULT_PORT}|" \
@@ -42,7 +38,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/gmsrc/gmicons/* ${STAGEDIR}${GPSMANDIR}/gmsrc/gmicons
${INSTALL_DATA} ${WRKSRC}/util/*.sh ${STAGEDIR}${GPSMANDIR}/util
${INSTALL_DATA} ${WRKSRC}/util/*.tcl ${STAGEDIR}${GPSMANDIR}/util
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html/info
${INSTALL_DATA} ${WRKSRC}/manual/*.pdf ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/manual/html/*.html ${STAGEDIR}${DOCSDIR}/html
@@ -50,7 +46,5 @@ do-install:
.for i in gif txt ps
${INSTALL_DATA} ${WRKSRC}/manual/html/info/*.${i} ${STAGEDIR}${DOCSDIR}/html/info
.endfor
- @${CAT} ${PKGMESSAGE}
-.endif
.include <bsd.port.mk>
diff --git a/astro/merkaartor/Makefile b/astro/merkaartor/Makefile
index 4f9f6c02703d..ef0c327eb088 100644
--- a/astro/merkaartor/Makefile
+++ b/astro/merkaartor/Makefile
@@ -34,27 +34,20 @@ GEOIMAGE_LIB_DEPENDS= libexiv2.so:${PORTSDIR}/graphics/exiv2
ZBAR_DESC= Read barcodes from walking papers (BROKEN)
ZBAR_QMAKE_ON= ZBAR=1
ZBAR_LIB_DEPENDS= libzbar.so:${PORTSDIR}/graphics/zbar
+ZBAR_BROKEN= Does not build with option ZBAR selected
DEBUG_QMAKE_OFF= NODEBUG=1 RELEASE=1
-OPTIONS_SUB= yes
-
-.include <bsd.port.options.mk>
+NLS_USE= QT4=linguist_build
-.if ${PORT_OPTIONS:MZBAR}
-BROKEN= Does not build with option ZBAR selected
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USE_QT4+= linguist_build
+OPTIONS_SUB= yes
-pre-build:
+pre-build-NLS-on:
@cd ${WRKSRC}/translations && ${LRELEASE} ../src/src.pro
-post-install:
+post-install-NLS-on:
@${MKDIR} ${STAGEDIR}${DATADIR}/translations
@(cd ${WRKSRC}/translations && ${COPYTREE_SHARE} "merkaartor_*.qm" \
${STAGEDIR}${DATADIR}/translations)
-.endif
.include <bsd.port.mk>
diff --git a/astro/osmium/Makefile b/astro/osmium/Makefile
index 8581031f22f3..b180fb21d09d 100644
--- a/astro/osmium/Makefile
+++ b/astro/osmium/Makefile
@@ -29,6 +29,7 @@ CXXFLAGS+= -I${LOCALBASE}/include \
-L${LOCALBASE}/lib
NO_ARCH= yes
+NO_BUILD= yes
PORTDOCS= *
OPTIONS_DEFINE= JAVASCRIPT DOXYGEN DOCS
@@ -38,19 +39,13 @@ JAVASCRIPT_DESC=Enable javascript support
JAVASCRIPT_LIB_DEPENDS= libv8.so:${PORTSDIR}/lang/v8 \
libshp.so:${PORTSDIR}/devel/shapelib \
libicuuc.so:${PORTSDIR}/devel/icu
-.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
-BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
-.endif
+DOXYGEN_IMPLIES= DOCS
+DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
-do-build:
-.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
+do-build-DOXYGEN-on:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKR_ARGS} doc
-.else
- ${TRUE}
-.endif
regression-test:
cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${SH} run_tests.sh
@@ -59,10 +54,9 @@ do-install:
cd ${WRKSRC}/include && ${COPYTREE_SHARE} '${PORTNAME} ${PORTNAME}.hpp' \
${STAGEDIR}${PREFIX}/include/
${MKDIR} ${STAGEDIR}${DOCSDIR}
-.if ${PORT_OPTIONS:MDOXYGEN}
- cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}/
-.endif
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/THANKS \
${WRKSRC}/NOTES_FOR_DEVELOPERS ${STAGEDIR}${DOCSDIR}/
+do-install-DOXYGEN-on:
+ cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
diff --git a/astro/viking/Makefile b/astro/viking/Makefile
index 571e12da6a49..dc49321eb1a8 100644
--- a/astro/viking/Makefile
+++ b/astro/viking/Makefile
@@ -53,6 +53,7 @@ MERKAATOR_DESC= Edit OpenStreetMap via Merkaartor
OPTIONS_SUB= yes
GEOCACHES_CONFIGURE_ENABLE= geocaches
+GEOCACHES_SUB_FILES= pkg-message
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
@@ -66,12 +67,6 @@ GPSD_CONFIGURE_ENABLE= realtime-gps-tracking
JOSM_RUN_DEPENDS= josm:${PORTSDIR}/astro/josm
MERKAATOR_RUN_DEPENDS= merkaartor:${PORTSDIR}/astro/merkaartor
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MGEOCACHES}
-SUB_FILES+= pkg-message
-.endif
-
post-patch:
@${REINPLACE_CMD} -e '/^AM_CFLAGS/s| -g | |' ${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's|Science;|Education;Science;|' \
diff --git a/astro/xtide/Makefile b/astro/xtide/Makefile
index 64f7a4e40202..d6165feb4570 100644
--- a/astro/xtide/Makefile
+++ b/astro/xtide/Makefile
@@ -85,14 +85,12 @@ post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${HARM_WRKSRC} && ${INSTALL_DATA} harmonics.tcd \
${STAGEDIR}${DATADIR})
-.if ${PORT_OPTIONS:MWVS}
+post-install-WVS-on:
@${MKDIR} ${STAGEDIR}${DATADIR}/wvs
(cd ${WRKDIR} && ${INSTALL_DATA} wvs*.dat \
${STAGEDIR}${DATADIR}/wvs)
-.endif
-.if ${PORT_OPTIONS:MX11}
+post-install-X11-on:
(cd ${WRKSRC}/iconsrc && ${INSTALL_DATA} xtide.png \
${STAGEDIR}${PREFIX}/share/pixmaps)
-.endif
.include <bsd.port.mk>