. Introduce a DEBUG option and default it to unset. For now the .debuginfo

files are only installed if the option is set.  In future it will likely
  also mean to enable the debug and/or fastdebug build.

PR:		172627
Feature safe:	yes
This commit is contained in:
Greg Lewis 2012-10-31 22:07:56 +00:00
parent c5d98a8f24
commit 1158f572a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306769

View file

@ -7,6 +7,7 @@
PORTNAME= openjdk
PORTVERSION= ${JDK_MAJOR_VERSION}.${PORT_MINOR_VERSION}.${PORT_BUILD_NUMBER}
PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= http://download.java.net/openjdk/jdk${JDK_MAJOR_VERSION}u${JDK_MINOR_VERSION}/promoted/b${JDK_BUILD_NUMBER}/ \
http://download.java.net/jaxp/1.4.5/:jaxp \
@ -34,8 +35,9 @@ USE_ICONV= yes
USE_XORG+= x11 xext xi xrender xt xtst
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= POLICY TZUPDATE
OPTIONS_DEFINE= DEBUG POLICY TZUPDATE
OPTIONS_DEFAULT= POLICY TZUPDATE
DEBUG_DESC= Enable extra debugging info
POLICY_DESC= Install the Unlimited Strength Policy Files
TZUPDATE_DESC= Update the time zone data
@ -111,6 +113,10 @@ BOOTSTRAP_JDKS= ${LOCALBASE}/openjdk7 \
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MDEBUG)
MAKE_ENV+= ALT_OBJCOPY="/nonexistent"
.endif
.if ${PORT_OPTIONS:MTZUPDATE}
RUN_DEPENDS+= ${LOCALBASE}/share/java/zi:${PORTSDIR}/java/java-zoneinfo
.endif