diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2003-09-27 15:18:24 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2003-09-27 15:18:24 +0000 |
commit | 03d47df143be16200d4407d22b2d224f59c43c08 (patch) | |
tree | 7d505f8677407cdf621c0437bad9ca25f28df0c3 /x11-toolkits/XawPlus/Makefile | |
parent | Update to 3.2.1 (diff) |
- Support CC/CFLAGS properly
PR: 57288
Submitted by: Ports Fury
Diffstat (limited to 'x11-toolkits/XawPlus/Makefile')
-rw-r--r-- | x11-toolkits/XawPlus/Makefile | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/x11-toolkits/XawPlus/Makefile b/x11-toolkits/XawPlus/Makefile index 0f2df6d50468..04dfe8b8d19d 100644 --- a/x11-toolkits/XawPlus/Makefile +++ b/x11-toolkits/XawPlus/Makefile @@ -7,6 +7,7 @@ PORTNAME= XawPlus PORTVERSION= 3.1.0 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= http://people.freenet.de/kra/XawPlus/ DISTNAME= ${PORTNAME:L}-${PORTVERSION} @@ -15,27 +16,33 @@ EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org COMMENT= A replacement for Xaw with a nicer 3-D look and some extensions +WRKSRC= ${WRKDIR}/${PORTNAME} + USE_X_PREFIX= yes USE_REINPLACE= yes +MAKE_ARGS= CC="${CC}" FLAGS="${CFLAGS} -fPIC -DHAS_WCHAR_H" \ + INC_PATH="-I. -I${X11BASE}/include" LIB_PATH="-L${X11BASE}/lib" +ALL_TARGET= lib INSTALLS_SHLIB= yes -LDCONFIG_DIRS= %%X11BASE%%/lib - -WRKSRC= ${WRKDIR}/${PORTNAME} post-patch: - @cd ${WRKSRC} && ${FIND} . -name '*.orig' -delete - -do-configure: - ${REINPLACE_CMD} -e 's:%%X11BASE%%:${X11BASE}:' ${WRKSRC}/test/Makefile - -@${RM} -f ${WRKSRC}/test/Makefile.bak - -post-install: + @${REINPLACE_CMD} -e 's:so\.3\..:so.3:' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's:%%X11BASE%%:${X11BASE}:' ${WRKSRC}/test/Makefile + +do-install: + @${MKDIR} ${PREFIX}/include/X11/XawPlus + ${INSTALL_DATA} ${WRKSRC}/X11/XawPlus/*.h ${PREFIX}/include/X11/XawPlus + ${INSTALL_DATA} ${WRKSRC}/libXawPlus.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/libXawPlus.so.3 ${PREFIX}/lib + ${LN} -sf libXawPlus.so.3 ${PREFIX}/lib/libXawPlus.so .if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} - ${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/test/* ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR} + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/test/Makefile ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/test/*.c ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/test/*.xpm ${EXAMPLESDIR} .endif .include <bsd.port.mk> |