1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/www/mod_v2h/files/files-Makefile
Edwin Groothuis 86a8822091 New port: mod_v2h mass vhosting module for Apache
mod_v2h is a mass virtual hosting module for Apache, it
	uses mySQL for holding its data.  I needed to install on a
	system, so I figured I might as well write a port for it
	while I was at it :)

PR:		ports/37803
Submitted by:	hikari-chan <hikari@hikari.org.uk>
2003-01-17 07:19:34 +00:00

27 lines
609 B
Plaintext

APXS=${LOCALBASE}/sbin/apxs
PERL=@@PERL@@
RM=/bin/rm
CP=/bin/cp
MKDIR=/bin/mkdir
CXX=g++
CFLAGS+=-shared
EXTRA_INCLUDES+=-I${LOCALBASE}/include/mysql -I${LOCALBASE}/include/apache2
LIBS+=-lmysqlclient
LDFLAGS+=-L${LOCALBASE}/lib/mysql -Wl,-R,/usr/local/lib/mysql \
-Wl,-soname,mod_v2h.so
all:
$(CXX) $(CFLAGS) $(EXTRA_INCLUDES) $(LDFLAGS) $(LIBS) -o mod_v2h.so mod_v2h.cpp
install:
$(CP) mod_v2h.so ${LOCALBASE}/libexec/apache2/mod_v2h.so
$(PERL) add-module
$(MKDIR) -p ${LOCALBASE}/share/doc/mod_v2h
$(CP) README AUTHORS ${LOCALBASE}/share/doc/mod_v2h/
clean:
$(RM) -rf .libs
$(RM) -f mod_v2h.la