. 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:
parent
c5d98a8f24
commit
1158f572a3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306769
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue