diff options
-rw-r--r-- | cad/oregano/Makefile | 8 | ||||
-rw-r--r-- | games/rtb/Makefile | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/cad/oregano/Makefile b/cad/oregano/Makefile index 30f63ab..7eca218 100644 --- a/cad/oregano/Makefile +++ b/cad/oregano/Makefile @@ -27,7 +27,13 @@ MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \ AUTOMAKE="${TRUE}" INSTALLS_OMF= yes +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +BROKEN= "Does not compile on 4.x" +.endif + post-patch: @${REINPLACE_CMD} -e 's|src/main\.c|${PORTNAME}|g' ${WRKSRC}/configure -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/games/rtb/Makefile b/games/rtb/Makefile index 0bdf998..84d1f0f 100644 --- a/games/rtb/Makefile +++ b/games/rtb/Makefile @@ -30,6 +30,12 @@ MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \ CPPFLAGS= -I${LOCALBASE}/include -DHAVE_DECL_GETOPT LDFLAGS= -L${LOCALBASE}/lib +.include<bsd.port.pre.mk> + +.if ${OSVERSION} < 500000 +BROKEN= "Does not compile on 4.x" +.endif + post-extract: @${REINPLACE_CMD} -e 's/min/Min/; s/max/Max/' ${WRKSRC}/include/Various.h @${REINPLACE_CMD} -E -e 's/\(int\*\)/int\*/' ${WRKSRC}/src/ArenaRealTime.cc |