freebsd-ports/www/larbin/Makefile
Pete Fritchman 8dd6d82525 Unbreak: add a patch to let this build on -current with gcc 3.1.
While I'm here, make the port respect CC/CXX/CFLAGS/CXXFLAGS.
2002-06-09 01:34:40 +00:00

54 lines
1.6 KiB
Makefile

# New ports collection makefile for: larbin
# Date Created: 26 March 2002
# Whom: Hiten Pandya <hiten@uk.FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= larbin
PORTVERSION= 2.6.1
CATEGORIES= www
MASTER_SITES= ftp://ftp.sourceforge.net/pub/sourceforge/larbin/
MAINTAINER= hiten@uk.FreeBSD.org
USE_GMAKE= yes
GNU_CONFIGURE= yes
PATCH_WRKSRC= ${WRKSRC}/src
MAKE_ARGS= CXX=${CXX}
post-patch:
@${SED} -e 's,CC=,CC?=,' -e 's,CFLAGS=-O3,CFLAGS+=,' < \
${WRKSRC}/adns/Makefile > ${WRKSRC}/adns/Makefile.new
@${MV} ${WRKSRC}/adns/Makefile.new ${WRKSRC}/adns/Makefile
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/larbin ${PREFIX}/bin/
@${INSTALL_DATA} ${WRKSRC}/larbin.conf ${PREFIX}/etc/larbin.conf.sample
@${MKDIR} ${PREFIX}/share/larbin
@${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/larbin/
pre-configure: config-message
config-message:
@${ECHO} "====================================================================="
@${ECHO} ""
@${ECHO} "Make sure you have a look at the larbin documentation available at:"
@${ECHO} " http://larbin.sourceforge.net/custom-eng.html."
@${ECHO} ""
@${ECHO} "====================================================================="
post-install:
@${ECHO} "====================================================================="
@${ECHO} ""
@${ECHO} "You must invoke larbin with the name of the configuration file, e.g:"
@${ECHO} "larbin -c config-file"
@${ECHO} ""
@${ECHO} "Documentation: ${PREFIX}/share/larbin"
@${ECHO} "Sample Configuration file: ${PREFIX}/etc/larbin.conf.sample"
@${ECHO} ""
@${ECHO} "====================================================================="
.include <bsd.port.mk>