Add license and fix hotjava pre-fetch
This commit is contained in:
parent
8535928476
commit
563d77295a
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.1 2000/03/30 03:07:25 chris Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2000/03/30 06:51:29 chris Exp $
|
||||
#
|
||||
# See http://www.freebsd.org/java/ for software updates, etc.
|
||||
|
||||
@ -14,6 +14,7 @@ MAINTAINER= chris@OpenBSD.org
|
||||
|
||||
RUN_DEPENDS= /emul/freebsd/usr/lib/libc.so.3.1:emulators/freebsd_lib
|
||||
|
||||
LICENSE_TYPE= NOFEE
|
||||
PERMIT_PACKAGE_CDROM= NO
|
||||
PERMIT_PACKAGE_FTP= NO
|
||||
PERMIT_DISTFILES_CDROM= NO
|
||||
|
@ -13,6 +13,7 @@ MAINTAINER= chris@OpenBSD.org
|
||||
|
||||
RUN_DEPENDS= ${PREFIX}/jdk${JDK_VERSION}/bin/java:devel/jdk
|
||||
|
||||
LICENSE_TYPE= NOFEE
|
||||
PREMIT_PACKAGE_CDROM= NO
|
||||
PERMIT_PACKAGE_FTP= NO
|
||||
PERMIT_DISTFILES_CDROM= NO
|
||||
@ -28,14 +29,23 @@ NO_MTREE= yes
|
||||
NO_CONFIGURE= yes
|
||||
NO_PACKAGE= yes
|
||||
|
||||
.if exists(${DISTDIR}/${DISTNAME})
|
||||
IGNORE='You must fetch the linux version manually from http://java.sun.com/products/hotjava/ and copy the file to ${DISTDIR}/${DISTNAME} and run make again.'
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
@sed -e s,/usr/bin/hotjava,${PREFIX}/bin/hotjava,g ${DISTDIR}/${DISTNAME} > ${WRKDIR}/${DISTNAME}
|
||||
do-fetch:
|
||||
@if [ ! -f ${DISTDIR}/${DISTFILES} ]; then \
|
||||
echo "" ; \
|
||||
echo " The source to this port may not be automatically fetched" ; \
|
||||
echo " due to licensing restrictions. You must fetch the source" ; \
|
||||
echo " manually, after reading and agreeing to the license at:" ; \
|
||||
echo "" ; \
|
||||
echo " http://java.sun.com/products/hotjava/" ; \
|
||||
echo "" ; \
|
||||
echo " Once ${DISTFILES} has been downloaded, move it to ${DISTDIR}"; \
|
||||
echo " and then restart this build." ; \
|
||||
echo "" ; \
|
||||
exit 1 ; \
|
||||
fi
|
||||
|
||||
pre-install:
|
||||
@sed -e s,/usr/bin/hotjava,${PREFIX}/bin/hotjava,g ${DISTDIR}/${DISTNAME} > ${WRKDIR}/${DISTNAME}
|
||||
@${INSTALL_DATA_DIR} ${PREFIX}/share
|
||||
@${INSTALL_DATA_DIR} ${PREFIX}/share/java
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user