diff options
author | sf <sf@FreeBSD.org> | 2001-09-22 14:06:15 +0800 |
---|---|---|
committer | sf <sf@FreeBSD.org> | 2001-09-22 14:06:15 +0800 |
commit | 8418ab01eb0e1c832aa115515ff4a5ab47d159b6 (patch) | |
tree | 89775f9e19c721bcd524cea8fd25ff3fbf47dece | |
parent | 15967351357028084ebdbb82ddd25b80d0faf015 (diff) | |
download | freebsd-ports-gnome-8418ab01eb0e1c832aa115515ff4a5ab47d159b6.tar.gz freebsd-ports-gnome-8418ab01eb0e1c832aa115515ff4a5ab47d159b6.tar.zst freebsd-ports-gnome-8418ab01eb0e1c832aa115515ff4a5ab47d159b6.zip |
o fix MASTER_SITES.
o respect CC and CFLAGS.
PR: 30720
Submitted by: KATO Tsuguru <tkato@prontomail.com>
-rw-r--r-- | lang/klone/Makefile | 28 | ||||
-rw-r--r-- | lang/klone/files/freebsd | 6 |
2 files changed, 18 insertions, 16 deletions
diff --git a/lang/klone/Makefile b/lang/klone/Makefile index 2b6eb8961c2c..df860df1e1da 100644 --- a/lang/klone/Makefile +++ b/lang/klone/Makefile @@ -5,33 +5,35 @@ # $FreeBSD$ # -PORTNAME= Klone +PORTNAME= klone PORTVERSION= 2.1.359 +PORTREVISION= 1 CATEGORIES= lang -MASTER_SITES= http://koala.ilog.fr/ftp/Klone/ -DISTNAME= Klone359 +MASTER_SITES= http://koala.ilog.fr/ftp/pub/Klone/ +DISTNAME= Klone${PORTVERSION:E} MAINTAINER= ports@FreeBSD.org WRKSRC= ${WRKDIR}/Klone -post-extract: - @sed -e s#!!PREFIX!!#${PREFIX}# \ - ${FILESDIR}/freebsd > ${WRKSRC}/Configs/freebsd - do-configure: - @cp -f ${WRKSRC}/Configs/freebsd ${WRKSRC}/Config.freebsd - @echo "freebsd" > ${WRKSRC}/.dir - @rm -f makefile + @${SED} -e 's:%%PREFIX%%:${PREFIX}:' \ + -e 's:%%CC%%:${CC}:' \ + -e 's:%%CFLAGS%%:${CFLAGS}:' \ + ${FILESDIR}/freebsd > ${WRKSRC}/Configs/freebsd + @${CP} -f ${WRKSRC}/Configs/freebsd ${WRKSRC}/Config.freebsd + @${ECHO} "freebsd" > ${WRKSRC}/.dir + @${RM} -f makefile do-install: - ${MKDIR} ${PREFIX}/lib/klone/scripts ${INSTALL_PROGRAM} ${WRKSRC}/klone ${PREFIX}/bin + @${MKDIR} ${PREFIX}/lib/klone ${INSTALL_DATA} ${WRKSRC}/kl/* ${PREFIX}/lib/klone + @${MKDIR} ${PREFIX}/lib/klone/scripts ${INSTALL_SCRIPT} ${WRKSRC}/scripts/* ${PREFIX}/lib/klone/scripts .if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/klone - ${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/klone + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/lang/klone/files/freebsd b/lang/klone/files/freebsd index aaddf9333139..da22b437d2f0 100644 --- a/lang/klone/files/freebsd +++ b/lang/klone/files/freebsd @@ -3,13 +3,13 @@ # defines this to the binary type: sun4, sun4solaris... MACHINE_TYPE = freebsd # default path for looking for klone files -KLONEPATH ="\".:~/kl:!!PREFIX!!/lib/klone\"" +KLONEPATH ="\".:~/kl:%%PREFIX%%/lib/klone\"" # system-needed libraries LIBS = # compilation flags , -O or -g -FLAGS = -O +FLAGS = %%CFLAGS%% # name (absolute or relative) of the compiler: cc, /bin/cc -C_COMPILER = cc +C_COMPILER = %%CC%% # various defines: DEFINES = -DSYSV_TIME -DVOID_SIGNALS # other linker -specific flags |