mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
Change LOCALBASE to PREFIX, and set -rpath, so the module can be installed
into PREFIX without setting LD_LIBRARY_PATH.
This commit is contained in:
parent
95bedf2e0a
commit
afdee1be9a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=59709
@ -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}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user