Lines 19-41
Link Here
|
19 |
|
19 |
|
20 |
USE_X_PREFIX= yes |
20 |
USE_X_PREFIX= yes |
21 |
USE_GNOME= gnomehier gnomehack gnomeprefix |
21 |
USE_GNOME= gnomehier gnomehack gnomeprefix |
22 |
USE_REINPLACE= yes |
|
|
23 |
USE_GMAKE= yes |
22 |
USE_GMAKE= yes |
24 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
25 |
CONFIGURE_ARGS= --without-included-gettext \ |
24 |
CONFIGURE_ARGS= --without-included-gettext \ |
26 |
--with-libintl-prefix=${LOCALBASE} \ |
25 |
--with-libintl-prefix=${LOCALBASE} \ |
27 |
--with-libiconv-prefix=${LOCALBASE} \ |
26 |
--with-libiconv-prefix=${LOCALBASE} \ |
28 |
--with-wx-config=${WX_CONFIG} \ |
27 |
--with-wx-config=${WX_CONFIG} \ |
29 |
--with-wxbase-config=${WX_CONFIG} |
28 |
--with-wxbase-config=${WX_CONFIG} \ |
30 |
|
29 |
--with-curl-config=${CURL_CONFIG} \ |
31 |
OPTIONS= OPTIMIZE "Build with optimization" off \ |
30 |
--program-transform-name="s/ed2k/amule-ed2k-handler/" |
32 |
STATIC "Enable static linking" off \ |
|
|
33 |
RELGRP "Use release group code" off |
34 |
|
31 |
|
35 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
32 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
36 |
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
33 |
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
37 |
|
34 |
|
|
|
35 |
OPTIONS= OPTIMIZE "Build with optimization" on \ |
36 |
STATIC "Enable static linking" off |
37 |
|
38 |
WX_CONFIG?= ${X11BASE}/bin/wxgtk2-2.4-config |
38 |
WX_CONFIG?= ${X11BASE}/bin/wxgtk2-2.4-config |
|
|
39 |
CURL_CONFIG?= ${LOCALBASE}/bin/curl-config |
40 |
|
41 |
.include <bsd.port.pre.mk> |
39 |
|
42 |
|
40 |
# Configure options |
43 |
# Configure options |
41 |
.if defined(WITH_OPTIMIZE) |
44 |
.if defined(WITH_OPTIMIZE) |
Lines 46-64
Link Here
|
46 |
CONFIGURE_ARGS+= --enable-static |
49 |
CONFIGURE_ARGS+= --enable-static |
47 |
.endif |
50 |
.endif |
48 |
|
51 |
|
49 |
.if defined(WITH_RELGRP) |
52 |
.include <bsd.port.post.mk> |
50 |
CONFIGURE_ARGS+= --enable-releasegrp |
|
|
51 |
.endif |
52 |
|
53 |
post-build: |
54 |
# Build the generic named ed2k binary |
55 |
# It will be installed in an adhoc fashion |
56 |
@cd ${BUILD_WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ed2k |
57 |
|
58 |
post-install: |
59 |
# Do not install a generic named ed2k binary |
60 |
# Install it under a more specific name |
61 |
@${INSTALL_PROGRAM} ${WRKSRC}/src/ed2k \ |
62 |
${PREFIX}/bin/amule-ed2k-handler |
63 |
|
64 |
.include <bsd.port.mk> |
65 |
-------------- Patch ends here --------------- |
|
|