1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/www/lighttpd-mod_geoip/Makefile
Baptiste Daroussin da6a715fff From tijl (see PR)
- Convert USE_AUTOTOOLS=libtool and USE_GNOME=lthack to USES=libtool.
- Convert to USES=tar:bzip2.
- Remove ACLOCAL_ARGS. Not needed.
- Add copy and force flags to AUTOMAKE_ARGS such that all automake build scripts
  are always updated.
- Remove --enable-static from CONFIGURE_ARGS.
- Add include directories to CPPFLAGS instead of CFLAGS.

From me:
- Use @sample
- Remove .la files (not needed for modules)
- Do not install .conf files in the stage (.conf.sample are enough)

PR:		ports/188972
Submitted by:	tijl
2014-05-07 06:50:59 +00:00

39 lines
1.1 KiB
Makefile

# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
PORTNAME= mod_geoip
CATEGORIES= www geography
PKGNAMEPREFIX= lighttpd-
DISTNAME= lighttpd-${PORTVERSION}
MAINTAINER= mm@FreeBSD.org
COMMENT= GeoIP module for lighttpd
LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP
BUILD_DEPENDS= ${LOCALBASE}/sbin/lighttpd:${PORTSDIR}/www/lighttpd
RUN_DEPENDS= ${LOCALBASE}/sbin/lighttpd:${PORTSDIR}/www/lighttpd
MASTERDIR= ${.CURDIR}/../lighttpd
DESCR= ${FILESDIR}/pkg-descr.${PORTNAME}
PLIST= ${FILESDIR}/pkg-plist.${PORTNAME}
LATEST_LINK= lighttpd-${PORTNAME}
PATCH_SITES+= ${MASTER_SITE_LOCAL}
PATCHFILES+= lighttpd-1.4.26_mod_geoip.patch.gz
PATCH_SITE_SUBDIR+= mm
BUILD_WRKSRC= ${WRKSRC}/src
ALL_TARGET= ${PORTNAME}.la
_BUILDING_LIGHTTPD_MODULE= yes
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/lighttpd
@${INSTALL_LIB} ${WRKSRC}/src/.libs/${PORTNAME}.so \
${STAGEDIR}${PREFIX}/lib/lighttpd
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d
@${INSTALL_DATA} ${WRKSRC}/doc/config/conf.d/geoip.conf \
${STAGEDIR}${PREFIX}/etc/lighttpd/conf.d/geoip.conf.sample
.include "${MASTERDIR}/Makefile"