mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- Get rid FreeBSD 6.X support
This commit is contained in:
parent
d795466500
commit
e8f615fbc7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=285175
@ -36,7 +36,7 @@ MANCOMPRESSED= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
|
||||
.if ${OSVERSION} < 700033
|
||||
CONFIGURE_ARGS+=ncurses
|
||||
.endif
|
||||
|
||||
|
@ -21,14 +21,8 @@ PLIST_FILES= lib/${PORTNAME}.a include/${PORTNAME}/config.h include/${PORTNAME}/
|
||||
include/${PORTNAME}/${PORTNAME}.h include/${PORTNAME}/config.vc.h
|
||||
PLIST_DIRS= include/${PORTNAME}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's/install: libaiff.a/install:/' \
|
||||
${WRKSRC}/${MAKEFILE}.in
|
||||
|
||||
.if ${OSVERSION} < 700042
|
||||
BROKEN= does not build on 6.x.
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -18,6 +18,7 @@ USE_AUTOTOOLS= libtool
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GNOME= pkgconfig glib20 gnomehack
|
||||
USE_LDCONFIG= yes
|
||||
WITH_FBSD10_FIX=yes
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,libmpd-1.0\/libmpd,libmpd,' \
|
||||
|
@ -33,10 +33,6 @@ LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 700000
|
||||
BROKEN= does not compile
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_GD)
|
||||
CONFIGURE_ARGS+= --disable-gd
|
||||
.else
|
||||
|
@ -53,9 +53,6 @@ CONFIG+= no-bonjour
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 700000
|
||||
@cd ${WRKSRC} && ${PATCH} -sp < ${PATCHDIR}/freebsd6-patch-compiler.pri
|
||||
.endif
|
||||
.if ${OSVERSION} >= 800000
|
||||
@${ECHO_CMD} 'QMAKE_LFLAGS += -fstack-protector' >> ${WRKSRC}/src/murmur/murmur.pro
|
||||
.endif
|
||||
|
@ -1,24 +0,0 @@
|
||||
--- compiler.pri.orig 2009-12-10 21:05:44.000000000 +0300
|
||||
+++ compiler.pri 2009-12-23 03:50:17.000000000 +0300
|
||||
@@ -68,8 +68,8 @@
|
||||
|
||||
unix {
|
||||
DEFINES *= RESTRICT=__restrict__
|
||||
- QMAKE_CFLAGS *= -Wfatal-errors -Wshadow -Wconversion -Wsign-compare -fvisibility=hidden
|
||||
- QMAKE_CXXFLAGS *= -Wfatal-errors -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -fvisibility=hidden
|
||||
+ QMAKE_CFLAGS *= -Wshadow -Wconversion -Wsign-compare
|
||||
+ QMAKE_CXXFLAGS *= -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare
|
||||
|
||||
CONFIG(opt-gcc) {
|
||||
QMAKE_CC = /opt/gcc/bin/gcc
|
||||
@@ -91,8 +91,8 @@
|
||||
|
||||
unix:!macx {
|
||||
CONFIG(debug, debug|release) {
|
||||
- QMAKE_CFLAGS *= -fstack-protector -fPIE -pie
|
||||
- QMAKE_CXXFLAGS *= -fstack-protector -fPIE -pie
|
||||
+ QMAKE_CFLAGS *= -fPIE -pie
|
||||
+ QMAKE_CXXFLAGS *= -fPIE -pie
|
||||
QMAKE_LFLAGS = -Wl
|
||||
}
|
||||
|
@ -20,11 +20,4 @@ USE_AUTOTOOLS= aclocal autoheader libtoolize automake autoconf libtool
|
||||
ACLOCAL_ARGS= -I. -I ${LOCALBASE}/share/aclocal
|
||||
AUTOMAKE_ARGS= --add-missing
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
.if ${OSVERSION} < 700000
|
||||
@${REINPLACE_CMD} '/^AM_CFLAGS =/s/-fvisibility=hidden//' ${WRKSRC}/libmpcdec/Makefile.am
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -40,10 +40,6 @@ OPTIONS= CURL "Enable fetching lyrics from the Internet" on \
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 700000
|
||||
BROKEN=>>Does not compile on FreeBSD 6.X
|
||||
.endif
|
||||
|
||||
.if defined(WITH_NCURSES_BASE)
|
||||
# no need to use ncurses-config if we use ncurses from the base system
|
||||
CONFIGURE_ARGS+= NCURSES_CONFIG=/usr/bin/true
|
||||
|
@ -37,10 +37,4 @@ post-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/doc/examples.html ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 700000
|
||||
USE_GCC= 4.2+
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -24,10 +24,4 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
MAKE_JOBS_SAFE= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 700000
|
||||
IGNORE= not supported on systems earlier than 7.x
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -43,10 +43,6 @@ LIB_DEPENDS+= mng:${PORTSDIR}/graphics/libmng
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 700000
|
||||
BROKEN= does not compile
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ANTHY)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/include/anthy/anthy.h:${PORTSDIR}/japanese/anthy
|
||||
RUN_DEPENDS+= ${LOCALBASE}/include/anthy/anthy.h:${PORTSDIR}/japanese/anthy
|
||||
|
@ -25,14 +25,8 @@ PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
SUB_FILES= pkg-message xsim.sh
|
||||
USE_BDB= 40+
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
CFLAGS+= -fPIC
|
||||
.if ${OSVERSION} < 700000
|
||||
MAKE_ARGS+= gcclib=`${CXX} -print-file-name=libgcc_pic.a`
|
||||
.else
|
||||
MAKE_ARGS+= gcclib=`${CXX} -print-file-name=libgcc_s.so`
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \
|
||||
@ -50,4 +44,4 @@ post-install:
|
||||
@${CP} -R ${WRKDIR}/usr/local/xsim/dat/* ${DATADIR}/dat
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -42,9 +42,7 @@ OPTIONS= NATIVE_OPT "Enable Native Optimizations" off \
|
||||
HAMLIB "Support rig control via hamlib" on \
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.if ${OSVERSION} < 700000
|
||||
USE_GCC= 4.2+
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "sparc64"
|
||||
BROKEN= Fails to install
|
||||
.endif
|
||||
|
@ -48,12 +48,7 @@ post-install:
|
||||
${PYTHON_CMD} ${opt} -m compileall -l ${PYTHONPREFIX_SITELIBDIR}/gammu
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config
|
||||
.if ${OSVERSION} < 700042
|
||||
@${REINPLACE_CMD} -e 's@ -Wno-pointer-sign@@g' ${WRKSRC}/CMakeLists.txt
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -54,9 +54,6 @@ post-patch:
|
||||
@${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config
|
||||
@${REINPLACE_CMD} -i '' -e 's:/etc/bash_completion.d:${PREFIX}/etc/bash_completion.d:' \
|
||||
${WRKSRC}/contrib/CMakeLists.txt
|
||||
.if ${OSVERSION} < 700042
|
||||
@${REINPLACE_CMD} -e 's@ -Wno-pointer-sign@@g' ${WRKSRC}/CMakeLists.txt
|
||||
.endif
|
||||
|
||||
.if defined(WITH_BASH)
|
||||
BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash
|
||||
|
@ -43,10 +43,6 @@ CFLAGS+= -DKERNELVER=${OSVERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 700000
|
||||
BROKEN= not tested for earlier than 7.x, probably won't build
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 800000
|
||||
# Simple check for 7.x kernel source (find usb.c)
|
||||
.if ! exists(${SRCPREFIX}/sys/dev/usb/usb.c)
|
||||
|
Loading…
Reference in New Issue
Block a user