Changeset 82148
- Timestamp:
- 08/08/11 13:03:50 (4 years ago)
- Location:
- trunk/dports/security/medusa
- Files:
-
- 2 edited
-
Portfile (modified) (4 diffs)
-
files/patch-configure.in.diff (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/security/medusa/Portfile
r82146 r82148 5 5 name medusa 6 6 version 2.0 7 revision 1 7 8 categories security net 8 9 platforms darwin … … 31 32 sha1 bdea5e5c81d588af35e564a54d9eb2b77eb92371 \ 32 33 rmd160 28e27525d704621c1d897c368a58080dac12be45 33 dist_subdir ${name}/${version}_${revision} 34 # Remove this line at next version update 35 dist_subdir ${name}/${version}_0 34 36 35 depends_lib port:openssl port:libssh2 37 depends_lib port:openssl port:libssh2 port:pcre 36 38 37 39 livecheck.type regex … … 44 46 45 47 post-patch { 46 # not very tasteful and doesn't fully work 47 reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/configure 48 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/configure.in 48 49 } 49 50 … … 54 55 --enable-module-postgres=no 55 56 57 # All modules end up linked with libsvn_client-1.0.dylib, even if the svn 58 # module was not requested. 59 default_variants +subversion 60 if {![variant_isset subversion]} { 61 variant_set subversion 62 } 63 56 64 variant subversion description "Build the Subversion module" { 57 # the apr-* detection is problematic58 # configure.cppflags "-I${prefix}/include/subversion-1 -I${prefix}/include/apr-0"59 65 configure.args-delete --enable-module-svn=no 60 configure.args-append --enable-module-svn=yes 66 configure.args-append --enable-module-svn=yes \ 67 --with-subversion=${prefix} 61 68 depends_lib-append port:subversion 62 69 } -
trunk/dports/security/medusa/files/patch-configure.in.diff
r82146 r82148 1 1 --- configure.in.orig 2010-02-09 16:17:51.000000000 -0600 2 +++ configure.in 2011-08-08 14:20:00.000000000 -0500 3 @@ -48,20 +48,6 @@ 2 +++ configure.in 2011-08-08 14:29:05.000000000 -0500 3 @@ -32,36 +32,18 @@ 4 AC_ARG_WITH(postgresql, AC_HELP_STRING([--with-postgresql=prefix], [Prefix for postgresql include directory (default = /usr)]), [postgresql_prefix="$withval"], [postgresql_prefix="/usr"]) 5 AC_ARG_WITH(afpfsng, AC_HELP_STRING([--with-afpfsng=prefix], [Prefix for afpfs-ng include directory (default = /usr)]), [afpfsng_prefix="$withval"], [afpfsng_prefix="/usr"]) 6 7 -dnl FreeBSD was not looking in /usr/local... 8 dnl AC_SEARCH_LIBS ? 9 -if test -d "/usr/local/lib" 10 - then LDFLAGS="$LDFLAGS -L/usr/local/lib" 11 -fi 12 -if test -d "/usr/local/ssl/lib" 13 - then LDFLAGS="$LDFLAGS -L/usr/local/ssl/lib" 14 +if test -d "@PREFIX@/ssl/lib" 15 + then LDFLAGS="$LDFLAGS -L@PREFIX@/ssl/lib" 16 fi 17 18 CFLAGS="$CFLAGS -fPIC" 19 -CFLAGS="$CFLAGS -I/usr/local/include -I/usr/local/ssl/include -I${subversion_prefix}/include/subversion-1 \ 20 +CFLAGS="$CFLAGS -I@PREFIX@/ssl/include -I${subversion_prefix}/include/subversion-1 \ 21 -I${postgresql_prefix}/include/postgresql -I${postgresql_prefix}/include/pgsql -I${afpfsng_prefix}/include/afpfs-ng" 22 4 23 AC_CHECKING([for pthread support]) 5 24 AC_CHECK_LIB(pthread, main, [], [AC_MSG_ERROR([ *** Application requires pthread support *** ])]) … … 22 41 AC_CHECKING([for pcre (Perl Compatible Regular Expressions) support]) 23 42 AC_CHECK_HEADER([pcre.h], 43 @@ -565,10 +547,10 @@ 44 if test x"$check_module_ssh" = "xtrue"; then 45 if test -f "/usr/lib/libssh2.so"; then 46 LIBSSH2_PATH="/usr/lib/libssh2.so" 47 - elif test -f "/usr/local/lib/libssh2.so"; then 48 - LIBSSH2_PATH="/usr/local/lib/libssh2.so" 49 - elif test -f "/opt/local/lib/libssh2.dylib"; then 50 - LIBSSH2_PATH="/opt/local/lib/libssh2.dylib" 51 + elif test -f "@PREFIX@/lib/libssh2.so"; then 52 + LIBSSH2_PATH="@PREFIX@/lib/libssh2.so" 53 + elif test -f "@PREFIX@/lib/libssh2.dylib"; then 54 + LIBSSH2_PATH="@PREFIX@/lib/libssh2.dylib" 55 fi 56 57 dnl Use otool on Mac OS X
Note: See TracChangeset
for help on using the changeset viewer.

