diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2006-03-17 17:37:31 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2006-03-17 17:37:31 +0000 |
commit | 3437cdfeb3e6fe6cfa223407de35419f9731e766 (patch) | |
tree | 0202ffd9256f45b7fd6a870a443ff0b80a60db4a /devel | |
parent | Add ${MASTER_SITE_SOURCEFORGE_EXTENDED} to MASTER_SITES (diff) |
Make sure openldap is found and the path to sdl is added only when sdl
support is enabled.
Submitted by: maintainer
Prodded by: netchild (openldap)
Notes
Notes:
svn path=/head/; revision=157505
Diffstat (limited to 'devel')
-rw-r--r-- | devel/pwlib/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/devel/pwlib/Makefile b/devel/pwlib/Makefile index 6c6c04aa6daa..43c770b663ad 100644 --- a/devel/pwlib/Makefile +++ b/devel/pwlib/Makefile @@ -7,7 +7,7 @@ PORTNAME= pwlib PORTVERSION= 1.9.2 -PORTREVISION= 2 +PORTREVISION= 3 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= http://www.voxgratia.org/releases/ @@ -29,18 +29,20 @@ USE_OPENSSL= yes NO_FILTER_SHLIBS= yes INSTALLS_SHLIB= yes +.include <bsd.port.pre.mk> + CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ - SDLLIBDIR="${LOCALBASE}/lib" PTHREAD_LIBS="${PTHREAD_LIBS}" + PTHREAD_LIBS="${PTHREAD_LIBS}" MAKE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" \ - SDLLIBDIR="${LOCALBASE}/lib" STDCCFLAGS+="-I${LOCALBASE}" - -.include <bsd.port.pre.mk> + STDCCFLAGS+="-I${LOCALBASE}" # if explicitely asked for, depend upon it .if defined(WITH_SDL) USE_SDL+= sdl +CONFIGURE_ENV+= SDLLIBDIR="${LOCALBASE}/lib" +MAKE_ENV+= SDLLIBDIR="${LOCALBASE}/lib" .endif # if explicitely disabled, do not depend upon it @@ -52,6 +54,8 @@ CONFIGURE_ARGS+= --disable-sdl .if !defined(WITHOUT_SDL) && !defined(WITH_SDL) .if ${HAVE_SDL:Msdl} USE_SDL+= sdl +CONFIGURE_ENV+= SDLLIBDIR="${LOCALBASE}/lib" +MAKE_ENV+= SDLLIBDIR="${LOCALBASE}/lib" .else CONFIGURE_ARGS+= --disable-sdl .endif @@ -66,6 +70,8 @@ CONFIGURE_ARGS+= --enable-plugins CONFIGURE_ARGS+= --disable-openldap .else USE_OPENLDAP= yes +CONFIGURE_ENV+= OPENLDAPLIBDIR="${LOCALBASE}/lib" +MAKE_ENV+= OPENLDAPLIBDIR="${LOCALBASE}/lib" .endif .if (${ARCH} == "amd64") || (${ARCH} == "ia64") || (${ARCH} == "sparc64") |