diff options
author | Bruce A. Locke <blocke@gentoo.org> | 2002-09-08 21:52:34 +0000 |
---|---|---|
committer | Bruce A. Locke <blocke@gentoo.org> | 2002-09-08 21:52:34 +0000 |
commit | 1fd76ed5f1291f121722875cb82095e531fed42d (patch) | |
tree | 83d6e2337dfcfd943824764531fa96aeccedcc78 /dev-util/ctmkit/files | |
parent | Fixes #6991. (diff) | |
download | gentoo-2-1fd76ed5f1291f121722875cb82095e531fed42d.tar.gz gentoo-2-1fd76ed5f1291f121722875cb82095e531fed42d.tar.bz2 gentoo-2-1fd76ed5f1291f121722875cb82095e531fed42d.zip |
ebuild contributed by matt@zigg.com (Matt Behrens) with modifications
Diffstat (limited to 'dev-util/ctmkit/files')
-rw-r--r-- | dev-util/ctmkit/files/Makefile | 51 | ||||
-rw-r--r-- | dev-util/ctmkit/files/digest-ctmkit-19960528 | 1 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-util/ctmkit/files/Makefile b/dev-util/ctmkit/files/Makefile new file mode 100644 index 000000000000..34af71658163 --- /dev/null +++ b/dev-util/ctmkit/files/Makefile @@ -0,0 +1,51 @@ +# Portable Makefile for ctmkit +# Public domain by Matt Behrens <matt@zigg.com> +# +# Drop this in your ctm directory and 'make && sudo make install'. + +DESTDIR= +PREFIX=/usr +BINDIR=${PREFIX}/bin + +CFLAGS+=-Ilibmd +LIBMD_OBJS=libmd/md2c.o libmd/md4c.o libmd/md5c.o libmd/md2hl.o libmd/md4hl.o libmd/md5hl.o +CTM_OBJS=ctm/ctm/ctm.o ctm/ctm/ctm_input.o ctm/ctm/ctm_pass1.o ctm/ctm/ctm_pass2.o ctm/ctm/ctm_pass3.o ctm/ctm/ctm_syntax.o ctm/ctm/ctm_ed.o +CTM_RMAIL_OBJS=ctm/ctm_rmail/ctm_rmail.o ctm/ctm_rmail/error.o +MD5_OBJS=md5/md5.o + +all: bin/ctm bin/ctm_rmail bin/md5 + +clean: + rm -f ${LIBMD_OBJS} ${CTM_OBJS} ${CTM_RMAIL_OBJS} libmd/md2hl.c libmd/md4hl.c libmd/md5hl.c libmd/libmd.a + rm -rf bin + +install: all + install -d ${DESTDIR}${BINDIR} + install -c -m 755 bin/ctm ${DESTDIR}${BINDIR}/ctm + install -c -m 755 bin/ctm_rmail ${DESTDIR}${BINDIR}/ctm_rmail + install -c -m 755 bin/md5 ${DESTDIR}${BINDIR}/md5 + +libmd/md2hl.c: libmd/mdXhl.c + sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' $< > $@ + +libmd/md4hl.c: libmd/mdXhl.c + sed -e 's/mdX/md4/g' -e 's/MDX/MD4/g' $< > $@ + +libmd/md5hl.c: libmd/mdXhl.c + sed -e 's/mdX/md5/g' -e 's/MDX/MD5/g' $< > $@ + +libmd/libmd.a: ${LIBMD_OBJS} + ar r $@ ${LIBMD_OBJS} + +bin/ctm: ${CTM_OBJS} libmd/libmd.a + mkdir -p bin + cc -o $@ ${CTM_OBJS} -Llibmd -lmd + +bin/ctm_rmail: ${CTM_RMAIL_OBJS} + mkdir -p bin + cc -o $@ ${CTM_RMAIL_OBJS} + +bin/md5: ${MD5_OBJS} + mkdir -p bin + cc -o $@ ${MD5_OBJS} -Llibmd -lmd + diff --git a/dev-util/ctmkit/files/digest-ctmkit-19960528 b/dev-util/ctmkit/files/digest-ctmkit-19960528 new file mode 100644 index 000000000000..2cde70052bdd --- /dev/null +++ b/dev-util/ctmkit/files/digest-ctmkit-19960528 @@ -0,0 +1 @@ +MD5 0f16f8caa4cb46d77e6443f7d8968c7b ctmkit.tar.gz 37115 |