mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
o fix MASTER_SITES.
o respect CC and CFLAGS. PR: 30720 Submitted by: KATO Tsuguru <tkato@prontomail.com>
This commit is contained in:
parent
33fda9b1d6
commit
961d20211f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48061
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user