Lines 26-39
Link Here
|
26 |
MAN1= rdesktop.1 |
26 |
MAN1= rdesktop.1 |
27 |
ALL_TARGET= |
27 |
ALL_TARGET= |
28 |
|
28 |
|
|
|
29 |
.include <bsd.port.pre.mk> |
30 |
|
31 |
.if ${OSVERSION} >= 500023 |
32 |
BUILD_DEPENDS= ${PREFIX}/include/gmp.h:${PORTSDIR}/math/libgmp-freebsd |
33 |
RUN_DEPENDS= ${PREFIX}/include/gmp.h:${PORTSDIR}/math/libgmp-freebsd |
34 |
.endif |
35 |
|
29 |
do-patch: |
36 |
do-patch: |
30 |
@${EXTRACT_CMD} -dc ${_DISTDIR}/${PATCHFILES} | \ |
37 |
@${EXTRACT_CMD} -dc ${_DISTDIR}/${PATCHFILES} | \ |
31 |
${PATCH} ${PATCH_DIST_ARGS} |
38 |
${PATCH} ${PATCH_DIST_ARGS} |
|
|
39 |
.if ${OSVERSION} >= 500023 |
40 |
@${PERL} -pi.orig -e 's:-O2.*-Wall:${CFLAGS} -I${PREFIX}/include:g' \ |
41 |
${WRKSRC}/Makefile |
42 |
.else |
32 |
@${PERL} -pi.orig -e 's:-O2.*-Wall:${CFLAGS}:g' ${WRKSRC}/Makefile |
43 |
@${PERL} -pi.orig -e 's:-O2.*-Wall:${CFLAGS}:g' ${WRKSRC}/Makefile |
|
|
44 |
.endif |
33 |
@${PERL} -pi.orig -e 's:/usr/X11R6/:${X11BASE}/:g' ${WRKSRC}/Makefile |
45 |
@${PERL} -pi.orig -e 's:/usr/X11R6/:${X11BASE}/:g' ${WRKSRC}/Makefile |
34 |
@${PERL} -pi.orig -e 's:^PREFIX.*:PREFIX=${PREFIX}:g' ${WRKSRC}/Makefile |
46 |
@${PERL} -pi.orig -e 's:^PREFIX.*:PREFIX=${PREFIX}:g' ${WRKSRC}/Makefile |
35 |
@${PERL} -pi.orig -e 's:^install.*:install\: rdesktop:g' ${WRKSRC}/Makefile |
47 |
@${PERL} -pi.orig -e 's:^install.*:install\: rdesktop:g' ${WRKSRC}/Makefile |
36 |
@${PERL} -pi.orig -e 's:^.*\(INSTALL\) rdp-srvr.*::g' ${WRKSRC}/Makefile |
48 |
@${PERL} -pi.orig -e 's:^.*\(INSTALL\) rdp-srvr.*::g' ${WRKSRC}/Makefile |
37 |
@${PERL} -pi.orig -e 's:<endian.h>:<machine/endian.h>:g' ${WRKSRC}/rdesktop.h |
49 |
@${PERL} -pi.orig -e 's:<endian.h>:<machine/endian.h>:g' ${WRKSRC}/rdesktop.h |
38 |
|
50 |
|
39 |
.include <bsd.port.mk> |
51 |
.include <bsd.port.post.mk> |