Reduce unecessary bsd.port.options.mk inclusion.
This commit is contained in:
@@ -26,19 +26,15 @@ LIBS+= -L${LOCALBASE}/lib -lgmodule-2.0
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
OPTIONS_DEFINE= NLS
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
NLS_USES= gettext
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MNLS}
|
||||
USES+= gettext
|
||||
PLIST_SUB+= NLS=""
|
||||
.else
|
||||
PLIST_SUB+= NLS="@comment "
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's/test "$$CC" = "gcc"/false/' ${WRKSRC}/configure
|
||||
.if ! ${PORT_OPTIONS:MNLS}
|
||||
.if empty(PORT_OPTIONS:MNLS)
|
||||
@${REINPLACE_CMD} 's|SUBDIRS = src po man|SUBDIRS = src man|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
.endif
|
||||
|
||||
@@ -27,11 +27,7 @@ PLIST_FILES= bin/gpsprune ${JAVAJARDIR:C,${PREFIX}/?,,}/${DISTNAME}
|
||||
OPTIONS_DEFINE= JAVA3D
|
||||
JAVA3D_DESC= Support for 3D view of track
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MJAVA3D}
|
||||
RUN_DEPENDS+= java3d>=1.5.2:${PORTSDIR}/java/java3d
|
||||
.endif
|
||||
JAVA3D_RUN_DEPENDS= java3d>=1.5.2:${PORTSDIR}/java/java3d
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${JAVAJARDIR}/
|
||||
|
||||
@@ -35,18 +35,15 @@ PGPLOT_CONFIGURE_ON= --with-pgplot-include=${LOCALBASE}/include \
|
||||
--with-pgplot-lib=${LOCALBASE}/lib
|
||||
PGPLOT_CONFIGURE_OFF= --with-gnuplot
|
||||
PGPLOT_LIB_DEPENDS= libpgplot.so:${PORTSDIR}/graphics/pgplot
|
||||
PGPLOT_RUN_DEPENDS_OFF= gnuplot:${PORTSDIR}/math/gnuplot
|
||||
PGPLOT_USES= fortran
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MGNOMEUI}
|
||||
.if ${PORT_OPTIONS:MGNOME}
|
||||
INSTALLS_OMF= yes
|
||||
.endif
|
||||
|
||||
.if ! ${PORT_OPTIONS:MPGPLOT}
|
||||
RUN_DEPENDS+= gnuplot:${PORTSDIR}/math/gnuplot
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if ${COMPILER_TYPE} == clang
|
||||
@${REINPLACE_CMD} -e 's|-fforce-addr||' ${WRKSRC}/configure
|
||||
|
||||
@@ -35,14 +35,11 @@ OPTIONS_DEFINE= JAVASCRIPT DOXYGEN DOCS
|
||||
OPTIONS_DEFAULT=JAVASCRIPT
|
||||
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:MJAVASCRIPT}
|
||||
LIB_DEPENDS+= libv8.so:${PORTSDIR}/lang/v8 \
|
||||
libshp.so:${PORTSDIR}/devel/shapelib \
|
||||
libicuuc.so:${PORTSDIR}/devel/icu
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
|
||||
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
|
||||
.endif
|
||||
|
||||
@@ -15,8 +15,6 @@ USE_TEX= latex
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-build:
|
||||
(cd ${WRKSRC} \
|
||||
&& ${CXX} ${CXXFLAGS} -DPP3DATA=\"${DATADIR}\" pp3.cc -o pp3)
|
||||
|
||||
@@ -45,8 +45,6 @@ DOCS= Bugs ChangeLog Coding Configuration Developer-Guide \
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|-O ||g ; \
|
||||
s|/usr/include|${LOCALBASE}/include|g ; \
|
||||
@@ -74,12 +72,10 @@ do-install:
|
||||
.for _DATA in ${DATA}
|
||||
${INSTALL_DATA} ${INSTALL_WRKSRC}/${_DATA} ${STAGEDIR}${DATADIR}/${_DATA}
|
||||
.endfor
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/README
|
||||
.for _DOC in ${DOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/${_DOC} ${STAGEDIR}${DOCSDIR}/${_DOC}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -11,8 +11,6 @@ COMMENT= Sunrise and sunset time calculator
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
pre-fetch:
|
||||
.if !defined(LAT)
|
||||
@${ECHO_MSG} "Type \"make LAT=<nnn.nn> LON=<nnn.nn>\" to hardwire your site"
|
||||
@@ -23,10 +21,8 @@ pre-fetch:
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/sscalc ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKDIR}/${DISTNAME}/sscalc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/cities.txt ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -10,7 +10,7 @@ MASTER_SITES= http://starplot.org/downloads/
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= 3-dimensional viewer for star charts
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
USES= gmake pathfix gettext pkgconfig
|
||||
USE_GNOME= gtk20
|
||||
@@ -18,8 +18,6 @@ GNU_CONFIGURE= yes
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|$$(docdir)/examples|${EXAMPLESDIR}|g' ${WRKSRC}/configure
|
||||
|
||||
@@ -53,7 +53,7 @@ share/applications/starplot.desktop
|
||||
%%PORTDOCS%%%%DOCSDIR%%/html/parfiles/hyades.par
|
||||
%%PORTDOCS%%%%DOCSDIR%%/html/parfiles/scocen.par
|
||||
%%PORTDOCS%%%%DOCSDIR%%/html/starplot.css
|
||||
%%EXAMPLESDIR%%/example.spec
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example.spec
|
||||
share/locale/en@boldquot/LC_MESSAGES/starplot.mo
|
||||
share/locale/en@quot/LC_MESSAGES/starplot.mo
|
||||
share/locale/es/LC_MESSAGES/starplot.mo
|
||||
@@ -61,7 +61,7 @@ share/pixmaps/starplot32x32.xpm
|
||||
%%DATADIR%%/sample.stars
|
||||
%%DATADIR%%/test.stars
|
||||
@dirrm %%DATADIR%%
|
||||
@dirrm %%EXAMPLESDIR%%
|
||||
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/parfiles
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html/images
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
|
||||
|
||||
@@ -18,7 +18,7 @@ CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LIBS+= -L${LOCALBASE}/lib -lm
|
||||
|
||||
OPTIONS_DEFINE= FREETYPE PANGO GIF JPEG PNG PNM TIFF
|
||||
OPTIONS_DEFAULT= FREETYPE PANGO GIF JPEG PNG PNM TIFF
|
||||
OPTIONS_DEFAULT= FREETYPE PANGO GIF JPEG PNG PNM TIFF
|
||||
|
||||
FREETYPE_CONFIGURE_WITH= --with-freetype
|
||||
FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
|
||||
|
||||
Reference in New Issue
Block a user