1997-10-01 08:12:54 +00:00
|
|
|
# New ports collection makefile for: ilu
|
|
|
|
# Date created: 29.9.1997
|
|
|
|
# Whom: cracauer@cons.org "Martin Cracauer"
|
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1997-10-01 08:12:54 +00:00
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= ilu
|
|
|
|
PORTVERSION= 2.0a13
|
1998-08-20 09:47:16 +00:00
|
|
|
CATEGORIES= devel
|
1998-12-02 23:37:41 +00:00
|
|
|
MASTER_SITES= ftp://parcftp.xerox.com/pub/ilu/2.0a13/ \
|
|
|
|
http://www2.cons.org:8000/freebsd-distfiles/ \
|
2000-06-29 07:03:02 +00:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= cracauer
|
2000-04-11 21:30:15 +00:00
|
|
|
DISTNAME= ${PORTNAME}-2.0alpha13
|
1997-10-01 08:12:54 +00:00
|
|
|
|
1998-12-02 23:37:41 +00:00
|
|
|
PATCH_SITES= http://www2.cons.org:8000/freebsd-distfiles/ \
|
2000-06-29 07:03:02 +00:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
PATCH_SITE_SUBDIR= cracauer
|
1998-10-08 16:37:20 +00:00
|
|
|
PATCHFILES= ${DISTNAME}-patches.html.gz
|
1997-10-01 08:12:54 +00:00
|
|
|
|
1998-10-08 16:37:20 +00:00
|
|
|
MAINTAINER= cracauer@cons.org
|
1997-12-17 09:43:21 +00:00
|
|
|
|
2000-03-08 10:56:40 +00:00
|
|
|
BUILD_DEPENDS= imake:${PORTSDIR}/devel/imake
|
1998-11-28 00:44:34 +00:00
|
|
|
|
1998-12-01 16:22:00 +00:00
|
|
|
# The FreeBSD port uses its own shared library patches. The native
|
|
|
|
# ILU support is incomplete and disabled here.
|
|
|
|
CONFIGURE_ARGS= --enable-http-protocol --enable-os-threads=posix \
|
|
|
|
--disable-kernel-shared-library --disable-c-shared-library \
|
|
|
|
--disable-cplusplus-shared-libary
|
1998-08-20 09:47:16 +00:00
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX}/ilu
|
1997-10-01 08:12:54 +00:00
|
|
|
|
|
|
|
INSTALL_TARGET= Install
|
1997-10-03 09:16:36 +00:00
|
|
|
PLIST= ${WRKSRC}/PLIST
|
1997-10-01 08:12:54 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
|
|
SHLIBPATCH=files/shlib-elf.patch
|
|
|
|
# The FreeBSD Java Development Kit is still in aout object format.
|
|
|
|
# You might want to enable it if you have an ELF JDK and/or build
|
|
|
|
# a seperate aout ILU runtime to use with Java.
|
|
|
|
CONFIGURE_ARGS+= --disable-java-support
|
|
|
|
.else
|
|
|
|
SHLIBPATCH=files/shlib-aout.patch
|
|
|
|
# Java support on -stable does not work (ILU runtime dumps core).
|
|
|
|
# You might want to enable it if you know what you are doing.
|
1998-12-01 16:22:00 +00:00
|
|
|
# Taking -O out of patches/patch-1-cra-cflags may also help.
|
1998-11-14 09:43:39 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-java-support
|
|
|
|
.endif
|
|
|
|
|
1997-10-07 15:06:37 +00:00
|
|
|
# Startup script, run at boot time
|
1998-08-20 09:47:16 +00:00
|
|
|
startup_dir= ${PREFIX}/etc/rc.d
|
|
|
|
startup_script= ${startup_dir}/50.ilu.sh
|
1997-10-07 15:06:37 +00:00
|
|
|
|
1998-12-01 16:22:00 +00:00
|
|
|
post-extract:
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} -R u+w ${WRKDIR}
|
1998-12-01 16:22:00 +00:00
|
|
|
|
1998-10-08 16:37:20 +00:00
|
|
|
post-patch:
|
|
|
|
${PATCH} ${PATCH_DIST_ARGS} < ${SHLIBPATCH}
|
|
|
|
|
1998-08-22 04:45:03 +00:00
|
|
|
do-install:
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
|
1997-12-17 09:43:21 +00:00
|
|
|
# Empty dir, but we really need it
|
|
|
|
${ECHO} @exec ${MKDIR} %D/ilu/lib/binding > ${PLIST}
|
|
|
|
${ECHO} @unexec ${RM} -r %D/ilu/lib/binding >> ${PLIST}
|
2000-03-20 23:08:13 +00:00
|
|
|
${ECHO} @exec ${CHMOD} 1777 %D/ilu/lib/binding >> ${PLIST}
|
1997-12-17 09:43:21 +00:00
|
|
|
${ECHO} @exec ${LDCONFIG} -m %D/ilu/lib >> ${PLIST}
|
|
|
|
# Empty dirs we don't need
|
1998-08-20 21:28:09 +00:00
|
|
|
${RMDIR} ${PREFIX}/ilu/man/man[358]
|
|
|
|
${RMDIR} ${PREFIX}/ilu/lisp
|
1998-08-20 09:47:16 +00:00
|
|
|
-${RMDIR} ${PREFIX}/ilu/examples/javatest1/javastubs
|
1997-12-17 09:43:21 +00:00
|
|
|
(cd ${PREFIX} ; find ilu -type f) >> ${PLIST}
|
1997-10-01 08:12:54 +00:00
|
|
|
(cd ${PREFIX} ; find ilu -type d) | ${AWK} '{print "@dirrm " $$1}' \
|
1997-12-17 09:43:21 +00:00
|
|
|
| tail -r | ${GREP} -v lib/binding >> ${PLIST}
|
1997-10-01 08:12:54 +00:00
|
|
|
(cd ${PREFIX}/ilu/bin ; for file in * ; do \
|
1999-08-28 01:58:05 +00:00
|
|
|
${LN} -fs ${PREFIX}/ilu/bin/$$file ${PREFIX}/bin/. ; \
|
1998-08-20 21:28:09 +00:00
|
|
|
${ECHO} bin/$$file ; \
|
1997-10-03 09:16:36 +00:00
|
|
|
done) >> ${PLIST}
|
1997-10-01 08:12:54 +00:00
|
|
|
(cd ${PREFIX}/ilu/man/man1 ; for file in * ; do \
|
1999-08-28 01:58:05 +00:00
|
|
|
${LN} -fs ${PREFIX}/ilu/man/man1/$$file ${PREFIX}/man/man1/. ; \
|
1998-08-20 21:28:09 +00:00
|
|
|
${ECHO} man/man1/$$file ; \
|
1997-10-03 09:16:36 +00:00
|
|
|
done) >> ${PLIST}
|
1997-10-07 15:06:37 +00:00
|
|
|
${ECHO} etc/rc.d/50.ilu.sh >> ${PLIST}
|
|
|
|
${ECHO} "Installing ${startup_script} file"
|
|
|
|
test -d ${startup_dir} || ${MKDIR} ${startup_dir}
|
|
|
|
${ECHO} "#!/bin/sh" > ${startup_script}
|
|
|
|
${ECHO} "${ECHO} -n ' ILU-shlibs'" >> ${startup_script}
|
|
|
|
${ECHO} "${LDCONFIG} -m ${PREFIX}/ilu/lib" >> ${startup_script}
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 755 ${startup_script};
|
1997-10-07 15:06:37 +00:00
|
|
|
${startup_script}
|
1997-10-01 08:12:54 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|