# New ports collection makefile for: ilu # Version required: 2.0alpha12 # Date created: 29.9.1997 # Whom: cracauer@cons.org "Martin Cracauer" # # $Id: Makefile,v 1.13 1998/10/08 18:48:56 cracauer Exp $ # DISTNAME= ilu-2.0alpha12 PKGNAME= ilu-2.0a12 CATEGORIES= devel MASTER_SITES= ftp://parcftp.xerox.com/pub/ilu/2.0a12/ PATCH_SITES= http://www2.cons.org:8000/freebsd-distfiles/ PATCHFILES= ${DISTNAME}-patches.html.gz MAINTAINER= cracauer@cons.org CONFIGURE_ARGS= --enable-http-protocol --enable-os-threads=posix NO_WRKSUBDIR= yes HAS_CONFIGURE= yes CONFIGURE_ARGS+= --prefix=${PREFIX}/ilu INSTALL_TARGET= Install PLIST= ${WRKSRC}/PLIST .include .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. # Maybe taking -O out of patches/patch-1-cra-cflags help. CONFIGURE_ARGS+= --disable-java-support .endif # Startup script, run at boot time startup_dir= ${PREFIX}/etc/rc.d startup_script= ${startup_dir}/50.ilu.sh post-patch: ${PATCH} ${PATCH_DIST_ARGS} < ${SHLIBPATCH} do-install: @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}) # 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 ${RMDIR} ${PREFIX}/ilu/man/man[358] ${RMDIR} ${PREFIX}/ilu/lisp -${RMDIR} ${PREFIX}/ilu/examples/javatest1/javastubs (cd ${PREFIX} ; find ilu -type f) >> ${PLIST} (cd ${PREFIX} ; find ilu -type d) | ${AWK} '{print "@dirrm " $$1}' \ | tail -r | ${GREP} -v lib/binding >> ${PLIST} (cd ${PREFIX}/ilu/bin ; for file in * ; do \ ln -fs ${PREFIX}/ilu/bin/$$file ${PREFIX}/bin/. ; \ ${ECHO} bin/$$file ; \ done) >> ${PLIST} (cd ${PREFIX}/ilu/man/man1 ; for file in * ; do \ ln -fs ${PREFIX}/ilu/man/man1/$$file ${PREFIX}/man/man1/. ; \ ${ECHO} man/man1/$$file ; \ done) >> ${PLIST} ${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} .include