1997-10-01 08:12:54 +00:00
|
|
|
# New ports collection makefile for: ilu
|
1997-12-17 09:43:21 +00:00
|
|
|
# Version required: 2.0alpha12
|
1997-10-01 08:12:54 +00:00
|
|
|
# Date created: 29.9.1997
|
|
|
|
# Whom: cracauer@cons.org "Martin Cracauer"
|
|
|
|
#
|
1998-08-22 04:45:03 +00:00
|
|
|
# $Id: Makefile,v 1.10 1998/08/20 21:28:09 hoek Exp $
|
1997-10-01 08:12:54 +00:00
|
|
|
#
|
|
|
|
|
1998-08-20 09:47:16 +00:00
|
|
|
DISTNAME= ilu-2.0alpha12
|
1997-12-17 09:43:21 +00:00
|
|
|
PKGNAME= ilu-2.0a12
|
1998-08-20 09:47:16 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ftp://parcftp.xerox.com/pub/ilu/2.0a12/
|
1997-10-01 08:12:54 +00:00
|
|
|
|
|
|
|
MAINTAINER= cracauer@cons.org
|
|
|
|
|
1997-12-17 09:43:21 +00:00
|
|
|
NO_PACKAGE= Doesn't work with optimization enabled
|
|
|
|
|
1997-10-09 21:19:42 +00:00
|
|
|
# The official guile port is outdated. If you have 1.2 installed, remove
|
|
|
|
# --disable-guile-support
|
1998-08-20 09:47:16 +00:00
|
|
|
CONFIGURE_ARGS= --disable-guile-support --enable-http-protocol
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
# Actually GNU_CONFIGURE
|
|
|
|
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
|
|
|
|
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-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}
|
|
|
|
${ECHO} @exec chmod 777 %D/ilu/lib/binding >> ${PLIST}
|
|
|
|
${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 \
|
|
|
|
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 \
|
|
|
|
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}
|
|
|
|
chmod 755 ${startup_script};
|
|
|
|
${startup_script}
|
1997-10-01 08:12:54 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|