2000-12-06 14:56:28 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: bk2site
|
|
|
|
# Date created: Wed Dec 06, 2000
|
|
|
|
# Whom: clive
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= bk2site
|
2003-10-07 19:19:09 +02:00
|
|
|
PORTVERSION= 1.1.9
|
2006-05-01 06:22:57 +02:00
|
|
|
PORTREVISION= 2
|
2000-12-06 14:56:28 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= clive@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Transforms Netscape bookmarks into a Yahoo-like website
|
2000-12-06 14:56:28 +01:00
|
|
|
|
2001-01-03 00:16:11 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if exists(${APXS})
|
2003-11-07 10:12:58 +01:00
|
|
|
RUN_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
|
2001-01-03 00:16:11 +01:00
|
|
|
|
|
|
|
# Specify these directories in relative paths to ${PREFIX}.
|
|
|
|
.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache)
|
|
|
|
CGIDIR?= share/apache/cgi-bin
|
|
|
|
ICONSDIR?= share/apache/icons
|
|
|
|
.else
|
|
|
|
CGIDIR?= www/cgi-bin/${PORTNAME}
|
|
|
|
ICONSDIR?= www/icons/${PORTNAME}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.else # No apache installed.
|
|
|
|
CGIDIR?= share/${PORTNAME}
|
|
|
|
ICONSDIR?= share/${PORTNAME}
|
|
|
|
.endif
|
|
|
|
|
2001-01-01 21:26:46 +01:00
|
|
|
MAN1= bk2site.1
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --enable-standard-datadir
|
2002-10-17 06:02:27 +02:00
|
|
|
MAKE_ARGS= CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
|
2000-12-06 14:56:28 +01:00
|
|
|
|
2001-01-03 00:16:11 +01:00
|
|
|
PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}"
|
|
|
|
|
2000-12-06 14:56:28 +01:00
|
|
|
post-patch:
|
2002-09-02 19:36:55 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,/etc/bk2site,${PREFIX}/etc/bk2site,' \
|
2001-01-03 00:16:11 +01:00
|
|
|
${WRKSRC}/dot.bk2siterc ${WRKSRC}/search.pl ${WRKSRC}/bk2site.1 \
|
|
|
|
${WRKSRC}/bk2site.html
|
2002-09-02 19:36:55 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,/icons/,/icons/bk2site/,' ${WRKSRC}/*
|
|
|
|
@${REINPLACE_CMD} -e 's,long int l,time_t l,' ${WRKSRC}/reference.C
|
2003-11-09 00:52:42 +01:00
|
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
|
2000-12-06 14:56:28 +01:00
|
|
|
|
2001-01-01 21:26:46 +01:00
|
|
|
post-install:
|
2000-12-06 14:56:28 +01:00
|
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
2001-01-03 00:16:11 +01:00
|
|
|
${MKDIR} ${PREFIX}/${ICONSDIR}
|
|
|
|
${MKDIR} ${PREFIX}/${CGIDIR}
|
2001-01-01 21:26:46 +01:00
|
|
|
${CP} ${WRKSRC}/*.html ${PREFIX}/etc/${PORTNAME}
|
2001-01-03 00:16:11 +01:00
|
|
|
${CP} ${WRKSRC}/*.gif ${PREFIX}/${ICONSDIR}
|
|
|
|
${CP} ${WRKSRC}/*.pl ${PREFIX}/${CGIDIR}
|
2001-01-09 13:12:02 +01:00
|
|
|
${CHMOD} +x ${PREFIX}/${CGIDIR}/*.pl
|
2000-12-06 14:56:28 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2001-01-03 00:16:11 +01:00
|
|
|
.include <bsd.port.post.mk>
|