- Get rid of PTHREAD_CFLAGS and PTHREAD_LIBS (category: astro)

Approved by:	portmgr
This commit is contained in:
Pietro Cerutti 2013-02-07 15:37:15 +00:00
parent e64af28851
commit 9650053021
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311869
6 changed files with 7 additions and 11 deletions

View File

@ -24,8 +24,8 @@ USE_LUA= 5.0+ # should be optional, but the build fails without it
WANT_GNOME= yes
CXXFLAGS+= -fsigned-char # fix text rendering (see Gentoo bug 316573)
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread
UI_LIST= glut gtk gnome kde
CELESTIA_UI?= glut

View File

@ -273,9 +273,6 @@ PLIST_SUB+= CURSES=""
SCONS_ARGS+= profiling=yes
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/Qgpsmm.pc.in
# generates .py[co] files for installed modules
# if that's not done, ${PYTHON_SITELIBDIR}/gps will be polluted
# with these files when module is imported from root user

View File

@ -25,9 +25,8 @@ USE_GMAKE= yes
CONFIGURE_ARGS= --includedir="${LOCALBASE}/include" \
--libdir="${LOCALBASE}/lib" \
CONFIGURE_ENV= LIBS="-lcompat" PTHREAD_LIBS="${PTHREAD_LIBS}"
CONFIGURE_ENV= LIBS="-lcompat"
CPPFLAGS+= -I${LOCALBASE}/include/GL -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lm
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}"
.include <bsd.port.mk>

View File

@ -34,8 +34,8 @@ INSTALLS_ICONS= yes
INSTALLS_OMF= yes
MAKE_JOBS_SAFE= yes
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -pthread
PORTDOCS= AUTHORS ChangeLog NEWS README TODO

View File

@ -17,7 +17,7 @@ COMMENT= Displays a view of the Earth (like xearth) with a rendered photo map
USE_QT4= corelib gui qt3support moc_build
USE_GMAKE= yes
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS} QT_PREFIX=${QT_PREFIX}
MAKE_ENV= QT_PREFIX=${QT_PREFIX}
do-install:
@${MKDIR} ${DATADIR}

View File

@ -47,7 +47,7 @@
LIB_DIRS = -L$(QT_LIB_DIR) -L$(X11_LIB_DIR)
-LIBS = -lX11 -lqt -lm
+LIBS = -lX11 -lQt3Support -lQtGui -lm ${PTHREAD_LIBS}
+LIBS = -lX11 -lQt3Support -lQtGui -lm -pthread
# If you want to use the QImageIO lib (to support jpg and png maps) use the
# next two lines and comment the one above
#WITH_QIMGIO = -DWITH_QIMAGEIO