blob: fd635141b5a75c91098b981a09712394705bf304 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# 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.10 1998/08/20 21:28:09 hoek Exp $
#
DISTNAME= ilu-2.0alpha12
PKGNAME= ilu-2.0a12
CATEGORIES= devel
MASTER_SITES= ftp://parcftp.xerox.com/pub/ilu/2.0a12/
MAINTAINER= cracauer@cons.org
NO_PACKAGE= Doesn't work with optimization enabled
# The official guile port is outdated. If you have 1.2 installed, remove
# --disable-guile-support
CONFIGURE_ARGS= --disable-guile-support --enable-http-protocol
NO_WRKSUBDIR= yes
HAS_CONFIGURE= yes
# Actually GNU_CONFIGURE
CONFIGURE_ARGS+= --prefix=${PREFIX}/ilu
INSTALL_TARGET= Install
PLIST= ${WRKSRC}/PLIST
# Startup script, run at boot time
startup_dir= ${PREFIX}/etc/rc.d
startup_script= ${startup_dir}/50.ilu.sh
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 <bsd.port.mk>
|