ports/java/bootstrap-openjdk/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

59 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= ${JDK_NAME}
PORTVERSION= ${DISTVERSION_${ARCH}}
PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= LOCAL/jkim
PKGNAMEPREFIX= bootstrap-
DISTNAME= ${JDK_PORT}-${ARCH}-${PORTVERSION}
MAINTAINER= jkim@FreeBSD.org
COMMENT= Oracle's Java 6 virtual machine release under the GPL v2
LICENSE= GPLv2
RUN_DEPENDS= java-zoneinfo>0:${PORTSDIR}/java/java-zoneinfo
BUNDLE_LIBS= yes
ONLY_FOR_ARCHS= amd64 i386
DISTINFO_FILE= ${.CURDIR}/distinfo.${ARCH}
DISTVERSION_amd64= r351880
DISTVERSION_i386= r351880
JDK_NAME= openjdk
JDK_PORT= openjdk6
JDK_ROOT= bootstrap-${JDK_NAME}
NO_BUILD= yes
PLIST_SUB= ARCH=${ARCH} JDK_NAME=${JDK_NAME} JDK_ROOT=${JDK_ROOT}
USES= tar:xz
WRKSRC= ${WRKDIR}/${JDK_ROOT}
INSTALLDIR= ${STAGEDIR}${PREFIX}/${JDK_ROOT}
.if !exists(/usr/lib/libstdc++.so.6)
PLIST_SUB+= LIBSTDCXX=""
.else
EXCLUDE_EXP= -not -name libstdc++.so.6
PLIST_SUB+= LIBSTDCXX="@comment "
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
PLIST_SUB+= CLIENTVM=""
.else
PLIST_SUB+= CLIENTVM="@comment "
.endif
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${INSTALLDIR} "${EXCLUDE_EXP}"
@cd ${WRKSRC} && ${COPYTREE_BIN} "bin jre/bin" ${INSTALLDIR}
update:
@${MAKE} -f ${.CURDIR}/Makefile.update \
JDK_NAME=${JDK_NAME} JDK_PORT=${JDK_PORT} JDK_ROOT=${JDK_ROOT}
.include <bsd.port.post.mk>