aboutsummaryrefslogtreecommitdiff
path: root/www/mod_auth_mysql_another
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-05-22 15:50:34 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-05-22 15:50:34 +0000
commitafdee1be9abdda07da960632b6a1e120e08f98c2 (patch)
tree5cecac1c2494dd2fcb955ecd2b1f863769417ff2 /www/mod_auth_mysql_another
parent95bedf2e0a5b3b9eb3b074c4a3676840000b808e (diff)
downloadports-afdee1be9abdda07da960632b6a1e120e08f98c2.tar.gz
ports-afdee1be9abdda07da960632b6a1e120e08f98c2.zip
Notes
Diffstat (limited to 'www/mod_auth_mysql_another')
-rw-r--r--www/mod_auth_mysql_another/Makefile11
-rw-r--r--www/mod_auth_mysql_another/files/patch-Makefile4
2 files changed, 10 insertions, 5 deletions
diff --git a/www/mod_auth_mysql_another/Makefile b/www/mod_auth_mysql_another/Makefile
index 40488a02653b..831c3599fbc6 100644
--- a/www/mod_auth_mysql_another/Makefile
+++ b/www/mod_auth_mysql_another/Makefile
@@ -13,13 +13,13 @@ EXTRACT_SUFX= .c.gz
MAINTAINER= mbr@FreeBSD.org
-BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/${AP_PORT}
+BUILD_DEPENDS= ${PREFIX}/sbin/apxs:${PORTSDIR}/www/${AP_PORT}
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
-RUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/www/${AP_PORT}
+RUN_DEPENDS= ${PREFIX}/sbin/${AP_TARGET}:${PORTSDIR}/www/${AP_PORT}
.include <bsd.port.pre.mk>
-APXS= ${LOCALBASE}/sbin/apxs
+APXS= ${PREFIX}/sbin/apxs
AP_PORT?= apache13
.if exists(${APXS})
@@ -57,6 +57,11 @@ do-extract:
fi
.endif
+post-patch:
+ @${CP} ${WRKDIR}/mod_auth_mysql/Makefile ${WRKDIR}/mod_auth_mysql/Makefile.new
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' < ${WRKDIR}/mod_auth_mysql/Makefile.new \
+ > ${WRKDIR}/mod_auth_mysql/Makefile
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/${AUTH_MYSQL_DOCS}
diff --git a/www/mod_auth_mysql_another/files/patch-Makefile b/www/mod_auth_mysql_another/files/patch-Makefile
index c1eed7367cc0..7f797afafccf 100644
--- a/www/mod_auth_mysql_another/files/patch-Makefile
+++ b/www/mod_auth_mysql_another/files/patch-Makefile
@@ -5,12 +5,12 @@
+APXSFLAGS =
+DSO = mod_auth_mysql.so
+SRCS = mod_auth_mysql.c
-+OPTS = -I/usr/local/include -L/usr/local/lib/mysql -lmysqlclient
++OPTS = -I%%PREFIX%%/include -L%%PREFIX%%/lib/mysql -lmysqlclient
+
+all: $(DSO)
+
+$(DSO): $(SRCS)
-+ $(APXS) $(APXSFLAGS) -o $(DSO) $(OPTS) -c $(SRCS)
++ $(APXS) $(APXSFLAGS) -o $(DSO) $(OPTS) -c $(SRCS) -rpath %%PREFIX%%/lib/mysql
+
+install: $(DSO)
+ $(APXS) $(APXSFLAGS) $(NAME) -i -A $(DSO)