diff options
author | znerd <znerd@FreeBSD.org> | 2002-11-20 16:56:26 +0800 |
---|---|---|
committer | znerd <znerd@FreeBSD.org> | 2002-11-20 16:56:26 +0800 |
commit | f7e261c73e0ebcedd22e596a95176e2bf92f6845 (patch) | |
tree | 939febcda3398ac180a0157bbf57d8e94b9f7f27 /java/jdk12-doc/Makefile | |
parent | d30899cef27d24d7fc2114969d48d5273846a3fc (diff) | |
download | freebsd-ports-gnome-f7e261c73e0ebcedd22e596a95176e2bf92f6845.tar.gz freebsd-ports-gnome-f7e261c73e0ebcedd22e596a95176e2bf92f6845.tar.zst freebsd-ports-gnome-f7e261c73e0ebcedd22e596a95176e2bf92f6845.zip |
Automagically generating pkg-plist.
Diffstat (limited to 'java/jdk12-doc/Makefile')
-rw-r--r-- | java/jdk12-doc/Makefile | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/java/jdk12-doc/Makefile b/java/jdk12-doc/Makefile index 7536569842a4..e85f22b77191 100644 --- a/java/jdk12-doc/Makefile +++ b/java/jdk12-doc/Makefile @@ -18,7 +18,6 @@ MAINTAINER= znerd@FreeBSD.org NO_CDROM= "License does not allow distribution with fee." RESTRICTED= "This software is under license and export control." -PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///} TARGET_DIR?= ${PREFIX}/share/doc/jdk${JDK_MAJOR_VER} WRKSRC= ${WRKDIR}/jdk${JDK_VERSION:C/_.*\$//g}/docs @@ -29,13 +28,26 @@ NO_BUILD= yes .include <bsd.port.pre.mk> +pre-install: + @${ECHO_CMD} -n ">> Removing ${PLIST}..." + @${RM} -f ${PLIST} + @${TOUCH} ${PLIST} + @${ECHO_CMD} " [ DONE ]" + do-install: - @${ECHO} -n ">> Creating directory ${TARGET_DIR}..." + @${ECHO_CMD} -n ">> Creating directory ${TARGET_DIR}..." @${MKDIR} ${TARGET_DIR} - @${ECHO} " [ DONE ]" + @${ECHO_CMD} " [ DONE ]" - @${ECHO} -n ">> Copying files..." + @${ECHO_CMD} -n ">> Copying files..." @${CP} -r ${WRKSRC}/* ${TARGET_DIR} - @${ECHO} " [ DONE ]" + @${ECHO_CMD} " [ DONE ]" + + @${ECHO_CMD} -n ">> Creating packing list..." + @${FIND} ${TARGET_DIR} -type f -print | \ + ${SED} "s,${PREFIX}/*,," >> ${PLIST} + @${FIND} ${TARGET_DIR} -type d -print | sort -r | \ + ${SED} -e "s,${PREFIX}/*,," -e "s,^,@dirrm ,g" >> ${PLIST} + @${ECHO_CMD} " [ DONE ]" .include <bsd.port.post.mk> |