mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
60 lines
1.6 KiB
Makefile
60 lines
1.6 KiB
Makefile
# Created by: clive
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bk2site
|
|
PORTVERSION= 1.1.9
|
|
PORTREVISION= 2
|
|
CATEGORIES= www
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Transforms Netscape bookmarks into a Yahoo-like website
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
.if exists(${APXS})
|
|
RUN_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
|
|
|
|
# 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
|
|
|
|
MAN1= bk2site.1
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix="${PREFIX}" --enable-standard-datadir
|
|
MAKE_ARGS= CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
|
|
|
|
PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,/etc/bk2site,${PREFIX}/etc/bk2site,' \
|
|
${WRKSRC}/dot.bk2siterc ${WRKSRC}/search.pl ${WRKSRC}/bk2site.1 \
|
|
${WRKSRC}/bk2site.html
|
|
@${REINPLACE_CMD} -e 's,/icons/,/icons/bk2site/,' ${WRKSRC}/*
|
|
@${REINPLACE_CMD} -e 's,long int l,time_t l,' ${WRKSRC}/reference.C
|
|
@${REINPLACE_CMD} -e 's,iwebstream::,,' ${WRKSRC}/iwebstream.H
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} -f
|
|
|
|
post-install:
|
|
${MKDIR} ${PREFIX}/etc/${PORTNAME}
|
|
${MKDIR} ${PREFIX}/${ICONSDIR}
|
|
${MKDIR} ${PREFIX}/${CGIDIR}
|
|
${CP} ${WRKSRC}/*.html ${PREFIX}/etc/${PORTNAME}
|
|
${CP} ${WRKSRC}/*.gif ${PREFIX}/${ICONSDIR}
|
|
${CP} ${WRKSRC}/*.pl ${PREFIX}/${CGIDIR}
|
|
${CHMOD} +x ${PREFIX}/${CGIDIR}/*.pl
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|