Page MenuHomeFreeBSD

D59167.id185152.diff
No OneTemporary

D59167.id185152.diff

diff --git a/java/openjdk25/Makefile b/java/openjdk25/Makefile
--- a/java/openjdk25/Makefile
+++ b/java/openjdk25/Makefile
@@ -1,6 +1,7 @@
PORTNAME= openjdk
DISTVERSIONPREFIX= jdk-
DISTVERSION= ${JDK_FULL_VERSION:S/.0.0//}
+PORTREVISION= 1
CATEGORIES= java devel
PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION}
MASTER_SITES= LOCAL/openjdk:boot
@@ -51,14 +52,28 @@
RUN_DEPENDS+= xorg-fonts-truetype>0:x11-fonts/xorg-fonts-truetype
.endif
+.if ${FLAVOR:M*headless} == ""
USES= autoreconf:build compiler:features cpe gmake iconv jpeg pkgconfig xorg
+.else
+USES= autoreconf:build compiler:features cpe gmake iconv jpeg pkgconfig
+.endif
CPE_VENDOR= oracle
USE_GITHUB= yes
GH_ACCOUNT= freebsd
-USE_XORG= x11 xext xi xrandr xrender xt xtst
+.if ${FLAVOR:M*headless} == ""
+USE_XORG= x11 xext xi xrandr xrender xt xtst
+.endif
+
+.if ${FLAVOR:M*headless}
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/extensions/Xrender.h:x11/libXrender
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/extensions/Xrandr.h:x11/libXrandr
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/extensions/XTest.h:x11/libXtst
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/extensions/shape.h:x11/libXext
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/Intrinsic.h:x11-toolkits/libXt
+.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-ccache \
diff --git a/java/openjdk26/Makefile b/java/openjdk26/Makefile
--- a/java/openjdk26/Makefile
+++ b/java/openjdk26/Makefile
@@ -1,6 +1,7 @@
PORTNAME= openjdk
DISTVERSIONPREFIX= jdk-
DISTVERSION= ${JDK_FULL_VERSION:S/.0.0//}
+PORTREVISION= 1
CATEGORIES= java devel
PKGNAMESUFFIX?= ${JDK_MAJOR_VERSION}
MASTER_SITES= LOCAL/openjdk:boot
@@ -51,14 +52,28 @@
RUN_DEPENDS+= xorg-fonts-truetype>0:x11-fonts/xorg-fonts-truetype
.endif
+.if ${FLAVOR:M*headless} == ""
USES= autoreconf:build compiler:features cpe gmake iconv jpeg pkgconfig xorg
+.else
+USES= autoreconf:build compiler:features cpe gmake iconv jpeg pkgconfig
+.endif
CPE_VENDOR= oracle
USE_GITHUB= yes
GH_ACCOUNT= freebsd
-USE_XORG= x11 xext xi xrandr xrender xt xtst
+.if ${FLAVOR:M*headless} == ""
+USE_XORG= x11 xext xi xrandr xrender xt xtst
+.endif
+
+.if ${FLAVOR:M*headless}
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/extensions/Xrender.h:x11/libXrender
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/extensions/Xrandr.h:x11/libXrandr
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/extensions/XTest.h:x11/libXtst
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/extensions/shape.h:x11/libXext
+BUILD_DEPENDS+= ${LOCALBASE}/include/X11/Intrinsic.h:x11-toolkits/libXt
+.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-ccache \

File Metadata

Mime Type
text/plain
Expires
Tue, Sep 8, 3:42 PM (12 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38522836
Default Alt Text
D59167.id185152.diff (2 KB)

Event Timeline