diff options
author | pat <pat@FreeBSD.org> | 2002-10-09 09:42:14 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-10-09 09:42:14 +0800 |
commit | 7288542fff3971e7b3d4d39a848f9fcc7f8c8fc7 (patch) | |
tree | 7d797d5639b519ff7e19e0f2be2de1a5e9a438ae /x11-toolkits | |
parent | 61db63eddef7f504d52600e14923a5e20104a845 (diff) | |
download | freebsd-ports-graphics-7288542fff3971e7b3d4d39a848f9fcc7f8c8fc7.tar.gz freebsd-ports-graphics-7288542fff3971e7b3d4d39a848f9fcc7f8c8fc7.tar.zst freebsd-ports-graphics-7288542fff3971e7b3d4d39a848f9fcc7f8c8fc7.zip |
Fix build
PR: ports/43687
Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/mesgui/Makefile | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/x11-toolkits/mesgui/Makefile b/x11-toolkits/mesgui/Makefile index 08a7d3de2d1..161f60ae403 100644 --- a/x11-toolkits/mesgui/Makefile +++ b/x11-toolkits/mesgui/Makefile @@ -13,19 +13,33 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= SDL-1.1:${PORTSDIR}/devel/sdl12 \ - freetype:${PORTSDIR}/print/freetype2 +LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 \ + freetype.9:${PORTSDIR}/print/freetype2 + +SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config USE_REINPLACE= yes USE_MESA= yes USE_GMAKE= yes -MAKE_ENV= OPT="-I${LOCALBASE}/include -I${X11BASE}/include" +MAKE_ENV= OPT="${OPT}" LDFLAGS="${LDFLAGS}" INSTALLS_SHLIB= yes +OPT= ${CFLAGS} -fPIC -DPIC -Iinclude \ + `${SDL_CONFIG} --cflags` `freetype-config --cflags` \ + -I${LOCALBASE}/include -I${X11BASE}/include +LDFLAGS= `${SDL_CONFIG} --libs` `freetype-config --libs` \ + -L${LOCALBASE}/lib -L${X11BASE}/lib + post-patch: - @${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s,OPT =,OPT+=,g" \ - -e "s|-I/usr|-I${LOCALBASE}|g" -e "s,SDL,SDL11,g" \ - ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|^CC|#CC|g ; \ + s|^OPT|#OPT|g ; \ + s|gcc|\$$\(CC\)|g ; \ + s|-lc|\$$\(LDFLAGS\)|g' ${WRKSRC}/Makefile + @cd ${WRKSRC}/src && \ + for file in * ; do \ + ${MV} $${file} $${file}.pre_tr ; \ + ${TR} -d "\r" < $${file}.pre_tr > $${file} ; \ + done do-install: ${INSTALL_DATA} ${WRKSRC}/include/mesgui.h ${PREFIX}/include |