diff --git a/textproc/ezxml/Makefile b/textproc/ezxml/Makefile index 59ba200679d9..fc4aa44c874e 100644 --- a/textproc/ezxml/Makefile +++ b/textproc/ezxml/Makefile @@ -7,7 +7,6 @@ CATEGORIES= textproc devel MASTER_SITES= SF/${PORTNAME}/ezXML/ezXML%20${PORTVERSION} \ http://www.yazzy.org/ports/ezxml/ - MAINTAINER= ports@FreeBSD.org COMMENT= Easy to use C library for parsing XML documents @@ -16,27 +15,17 @@ WRKSRC= ${WRKDIR}/${PORTNAME} LIBFILES= libezxml.a HEADERFILES= ezxml.h +OPTIONS_DEFINE= EXAMPLES + PLIST_FILES= include/${HEADERFILES} \ lib/${LIBFILES} -.if !defined(NOPORTDOCS) -PLIST_FILES+= %%EXAMPLESDIR%%/ezxml.txt -PLIST_DIRS= %%EXAMPLESDIR%% -.endif - -NO_STAGE= yes -.include +PORTEXAMPLES= * do-install: - ${INSTALL_DATA} ${WRKSRC}/${LIBFILES} ${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/${HEADERFILES} ${PREFIX}/include + ${INSTALL_DATA} ${WRKSRC}/${LIBFILES} ${STAGEDIR}${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/${HEADERFILES} ${STAGEDIR}${PREFIX}/include + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/ezxml.txt ${STAGEDIR}${EXAMPLESDIR} -.if !defined(NOPORTDOCS) -post-install: - @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/ezxml.txt ${EXAMPLESDIR} - @${ECHO} "An example of how to use the ezXML library can be found in" - @${ECHO} "${EXAMPLESDIR}" -.endif - -.include +.include