1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/databases/adodb5/Makefile
2013-05-13 15:47:47 +00:00

68 lines
1.7 KiB
Makefile

# Created by: mm@FreeBSD.org
# $FreeBSD$
PORTNAME= adodb
DISTVERSION= 5.18
CATEGORIES= databases www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-php5-only/${PORTNAME}-${DISTVERSION:S/.//g}-for-php5
DISTNAME= ${PORTNAME:S/5//}${DISTVERSION:S/.//g}a
MAINTAINER= joehorn@gmail.com
COMMENT= Database library for PHP
LICENSE= BSD
CONFLICTS= adodb-4.*
LATEST_LINK= adodb5
USE_ZIP= yes
USE_PHP= pcre
DEFAULT_PHP_VER=5
WRKSRC= ${WRKDIR}/${PORTNAME}5
NO_BUILD= YES
ADODB_SUBDIRS= contrib datadict drivers lang pear perf session xsl
OPTIONS_DEFINE= TESTS
TESTS_DESC= Install tests
.include <bsd.port.options.mk>
SUB_FILES+= pkg-message
.if ${PORT_OPTIONS:MTESTS}
PLIST_SUB+= TESTS=
.else
PLIST_SUB+= TESTS="@comment "
.endif
do-install:
@${MKDIR} ${DATADIR}
@cd ${WRKSRC}; ${FIND} ${ADODB_SUBDIRS} -type d \
-exec ${MKDIR} ${DATADIR}/{} \;
@cd ${WRKSRC}; ${FIND} . ! -path './*/*' -type f \( -name '*.php' -or -name '*.dtd' -or -name '*.zip' \) \
-exec ${INSTALL_DATA} ${WRKSRC}/{} ${DATADIR}/{} \;
@cd ${WRKSRC}; ${FIND} ${ADODB_SUBDIRS} -type f \
-exec ${INSTALL_DATA} ${WRKSRC}/{} ${DATADIR}/{} \;
.if ${PORT_OPTIONS:MTESTS}
@${MKDIR} ${DATADIR}/tests
@cd ${WRKSRC}; ${FIND} tests -type f \
-exec ${INSTALL_DATA} ${WRKSRC}/{} ${DATADIR}/{} \;
.endif
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR} ${DOCSDIR}/cute_icons_for_site
@cd ${WRKSRC}; ${FIND} . ! -path './*/*' -type f -name '*.txt' \
-exec ${INSTALL_MAN} ${WRKSRC}/{} ${DOCSDIR}/{} \;
@cd ${WRKSRC}/docs; ${FIND} . -type f \
-exec ${INSTALL_MAN} ${WRKSRC}/docs/{} ${DOCSDIR}/{} \;
@cd ${WRKSRC}; ${FIND} cute_icons_for_site -type f \
-exec ${INSTALL_MAN} ${WRKSRC}/{} ${DOCSDIR}/{} \;
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>