Fix build with custom PREFIX / LOCALBASE

Reported by:	QATty
This commit is contained in:
Ion-Mihai Tetcu 2009-06-04 08:36:02 +00:00
parent 222f6b360d
commit d1cb82fa2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235153
2 changed files with 4 additions and 4 deletions

View file

@ -38,7 +38,7 @@ PORTDOCS= README
MAKE_ENV= SONAME=${SONAME} SOLINK=${SOLINK}
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${SONAME} ${PREFIX}/lib/${SONAME}

View file

@ -20,10 +20,10 @@
-LDFLAGS+= -L../libaura
-LDFLAGS+= -L/usr/local/lib -L/usr/pkg/lib
-LDFLAGS+= -laura
+CFLAGS+= ${EXTRA_CFLAGS} ${WARNS} -fPIC -I%%PREFIX%%/include/aura3
+CFLAGS+= ${EXTRA_CFLAGS} ${WARNS} -fPIC -I%%LOCALBASE%%/include/aura3
+CFLAGS+= -DSMP
+CFLAGS+= -I/usr/local/include
+LDFLAGS+= -L/usr/local/lib
+CFLAGS+= -I%%LOCALBASE%%/include
+LDFLAGS+= -L%%LOCALBASE%%/lib
+LDFLAGS+= -laura3
# Default target: