1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/www/webobjects/Makefile
Olli Hauer 63f3e3b0d4 - remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@
2012-08-18 14:29:08 +00:00

110 lines
3.7 KiB
Makefile

# New ports collection makefile for: webobjects
# Date created: Thu Apr 12 04:43:26 EST 2007
# Whom: Quinton Dolan <q@onthenet.com.au>
#
# $FreeBSD$
#
PORTNAME= webobjects
PORTVERSION= 5.3.3
CATEGORIES= www java
MASTER_SITES= #
DISTNAME= WebObjects${DISTVERSION}Update
EXTRACT_SUFX= .pax.gz
MAINTAINER?= ports@FreeBSD.org
COMMENT= WebObjects Application Server Runtime
IS_INTERACTIVE= yes
RESTRICTED= License doesn't allow redistribution
WOBINURL= http://www.apple.com/support/downloads/webobjects533.html
WOPKGBUNDLE= WebObjects5.3.3Update.dmg
WOBINARCHIVE= ${DISTNAME}${EXTRACT_SUFX}
NO_WRKSUBDIR= yes
NO_BUILD= yes
USE_RC_SUBR= wotaskd JavaMonitor
USE_JAVA= 1.4+
EXTRACT_PRESERVE_OWNERSHIP= yes
.include <bsd.port.pre.mk>
.include "${MASTERDIR}/Makefile.plist"
NEXT_ROOT?= ${PREFIX}/apple
NEXT_BASE= ${NEXT_ROOT:S,^${PREFIX}/,,}
NEXT_USER?= ${WWWOWN}
NEXT_GROUP?= ${WWWGRP}
SYSTEM_LIBRARY= ${NEXT_BASE}/Library
LOCAL_LIBRARY= ${NEXT_BASE}/Local/Library
LOCALLIB= ${PREFIX}/${LOCAL_LIBRARY}
WOLOCAL= ${LOCALLIB}/WebObjects
WODOCROOT?= ${WWWDIR}
WODOCROOT_REL= ${WODOCROOT:S,^${PREFIX}/,,}
PLIST_SUB= NEXT_ROOT=${NEXT_BASE} WODOCROOT=${WODOCROOT_REL}
SUB_LIST+= NEXT_ROOT=${NEXT_BASE} USER=${NEXT_USER} GROUP=${NEXT_GROUP} \
JAVA=${JAVA} WODOCROOT=${WODOCROOT_REL}
SUB_FILES+= pkg-message pkg-install pkg-deinstall
.if defined(WITH_APACHE)
USE_APACHE?= 22+
BUILD_DEPENDS+= ${APACHEMODDIR}/mod_WebObjects.so:${PORTSDIR}/www/mod_webobjects
.endif
# Check for distribution files
.if !exists(${DISTDIR}/${WOBPKGBUNDLE})
IGNORE= may not be redistributed because of licensing reasons. Please visit ${WOBINURL} and download ${WOBINARCHIVE} from Apple into ${DISTDIR}
.endif
do-fetch:
# See http://wiki.objectstyle.org/confluence/display/WO/Deploying+on+FreeBSD+6.x+and+7.x+%28WO+5.3.3%29
# for the gory details.
dd if=${DISTDIR}/${WOPKGBUNDLE} bs=0x1000 skip=0xb12 \
of=${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
pre-install:
@${FIND} ${WRKSRC} -name '*.bak' -delete
@${FIND} ${WRKSRC} -name '*.orig' -delete
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
@${MKDIR} ${PREFIX}/${SYSTEM_LIBRARY}
@${MKDIR} ${PREFIX}/${LOCAL_LIBRARY}
@${CHMOD} -R 755 ${PREFIX}/${NEXT_BASE}
@${ECHO_MSG} -n ">> Installing WebObjects Runtime..."
@(cd ${WRKSRC}/System/Library && ${COPYTREE_BIN} \* \
${PREFIX}/${SYSTEM_LIBRARY})
@(cd ${WRKSRC}/Library && ${COPYTREE_BIN} \* \
${PREFIX}/${LOCAL_LIBRARY})
@${ECHO_MSG} " [ DONE ]"
@${CHOWN} ${NEXT_USER}:${NEXT_GROUP} ${WOLOCAL}
@${CHMOD} 0775 ${WOLOCAL}
@${MKDIR} ${WOLOCAL}/Configuration
@${MKDIR} ${WOLOCAL}/Applications
@${MKDIR} ${WOLOCAL}/JavaApplications
@${MKDIR} ${LOCALLIB}/Frameworks
@${CHOWN} -R ${NEXT_USER}:${NEXT_GROUP} ${WOLOCAL}/Configuration
@${CHOWN} ${NEXT_USER}:${NEXT_GROUP} ${WOLOCAL}/Applications
@${CHOWN} ${NEXT_USER}:${NEXT_GROUP} ${WOLOCAL}/JavaApplications
@${CHOWN} ${NEXT_USER}:${NEXT_GROUP} ${LOCALLIB}/Frameworks
@${ECHO_MSG} -n ">> Installing WebObjects Web Resources..."
@${MKDIR} ${WODOCROOT}
@(cd ${WRKSRC}/System/Library/WebObjects/WODocumentRoot && \
${COPYTREE_SHARE} \* ${WODOCROOT})
@${ECHO_MSG} " [ DONE ]"
post-install:
@(cd ${WRKSRC}/System/Library && ${PLIST_GEN} \* ${PREFIX}/${SYSTEM_LIBRARY})
@(cd ${WRKSRC}/Library && ${PLIST_GEN} \* ${PREFIX}/${LOCAL_LIBRARY} "-mindepth 1" )
@(cd ${WRKSRC}/System/Library/WebObjects/WODocumentRoot && \
${PLIST_GEN} \* ${WODOCROOT})
@${PLIST_DIRRM} ${NEXT_BASE}/Library
@${PLIST_DIRRMTRY} ${WODOCROOT}
@${PLIST_DIRRMTRY} ${WOLOCAL} Configuration Applications JavaApplications
@${PLIST_DIRRMTRY} ${NEXT_BASE} Local/Library/Frameworks
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>