freebsd-ports/news/suck/Makefile

85 lines
2.6 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: suck
# Date created: 30 Mar 1996
# Whom: graphite@taurus.bekkoame.or.jp
#
1999-08-30 16:33:04 +02:00
# $FreeBSD$
#
PORTNAME= suck
2003-04-01 07:24:17 +02:00
PORTVERSION= 4.3.2
PORTREVISION= 2
CATEGORIES= news
2003-11-12 16:09:17 +01:00
#MASTER_SITES= http://www.sucknews.org/
2005-01-13 12:24:53 +01:00
MASTER_SITES= http://home.comcast.net/~bobyetman/ \
${MASTER_SITE_LOCAL}
2003-09-24 19:35:16 +02:00
MASTER_SITE_SUBDIR= dinoex
2004-03-26 18:14:09 +01:00
PKGNAMESUFFIX?= ${CNEWS_SUFFIX}${PKGNAMESUFFIX2}
MAINTAINER= dinoex@FreeBSD.org
2003-02-20 19:26:42 +01:00
COMMENT= Receives/sends news to/from localhost via NNTP
CONFLICTS?= suckblow-1.*
USE_GMAKE= yes
GNU_CONFIGURE= yes
1997-10-30 00:10:17 +01:00
MAN1= suck.1 rpost.1 testhost.1 lmove.1
2002-01-08 08:53:01 +01:00
EX_SCRIPTS= get.news.generic get.news.inn perl_kill.pl perl_xover.pl \
post_filter.pl put.news put.news.pl put.news.sm put.news.sm.pl
EX_DATA= suckkillfile.sample sucknewsrc.sample suckothermsgs.sample
2003-04-15 20:31:51 +02:00
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
MAKE_ENV+= CHKHISTORY=chkhistory_db.o
2003-08-28 17:38:18 +02:00
.if defined(NEWSBIN) && !defined(SUCK_WITH_INN)
2003-06-12 21:43:15 +02:00
CNEWS_PORT?= news/cnews
2004-03-26 18:14:09 +01:00
CNEWS_SUFFIX= -cnews
MAKE_ENV+= DB_TYPE=-DUSE_DBZ DB_LIB=-lcnews
MAKE_ENV+= DB_LIB_LOC=-L${LOCALBASE}/lib
MAKE_ENV+= INCDIR2=-I${LOCALBASE}/include
2003-06-12 21:43:15 +02:00
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcnews.a:${PORTSDIR}/${CNEWS_PORT}
CONFLICTS+= suck-4.*
.else
2003-06-04 06:04:12 +02:00
CFLAGS+= -DNO_CONFIGDATA
MAKE_ENV+= DB_TYPE="-DUSE_INN23 -DDO_TAGGED_HASH"
MAKE_ENV+= DB_LIB="-linn -lstorage"
MAKE_ENV+= DB_LIB_LOC=-L${LOCALBASE}/news/lib
MAKE_ENV+= DB_INC_LOC=-I${LOCALBASE}/news/include
MAKE_ENV+= INCDIR2=-I${LOCALBASE}/include
BUILD_DEPENDS+= ${LOCALBASE}/news/lib/libinn.a:${PORTSDIR}/news/inn
CONFLICTS+= suck-cnews-4.*
.endif
.if !defined(SUCK_WITHOUT_SSL) && !defined(WITHOUT_SSL)
2003-08-28 17:38:18 +02:00
USE_OPENSSL= yes
MAKE_ENV+= SSL_LIB="-lssl -lcrypto"
MAKE_ENV+= SSL_DEFS="-I${OPENSSLINC} -DHAVE_LIBSSL"
MAKE_ENV+= SSL_LIB_LOC="-L${OPENSSLLIB}"
.endif
post-patch:
2002-06-16 17:03:10 +02:00
@${MV} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.sed
${SED} -e "s=/usr/local/=${LOCALBASE}/=" \
${WRKSRC}/Makefile.in.sed > ${WRKSRC}/Makefile.in
@${MV} ${WRKSRC}/suck_config.h ${WRKSRC}/suck_config.h.sed
.if defined(NEWSBIN) && !defined(SUCK_WITH_INN)
${SED} -e "s=/usr/local/lib/suck=${PREFIX}/lib/suck=" \
-e "s=/usr/local/news/lib=${NEWSCTL}=" \
${WRKSRC}/suck_config.h.sed > ${WRKSRC}/suck_config.h
.else
2002-06-16 17:03:10 +02:00
${SED} -e "s=/usr/local/lib/suck=${PREFIX}/lib/suck=" \
-e "s=/usr/local/news/lib=${LOCALBASE}/news/lib=" \
${WRKSRC}/suck_config.h.sed > ${WRKSRC}/suck_config.h
.endif
.if !defined(NOPORTDOCS)
2002-01-08 08:53:01 +01:00
post-install:
${MKDIR} ${EXAMPLESDIR}
2002-01-08 08:53:01 +01:00
.for i in ${EX_SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/sample/${i} ${EXAMPLESDIR}/
.endfor
.for i in ${EX_DATA}
${INSTALL_DATA} ${WRKSRC}/sample/${i} ${EXAMPLESDIR}/
.endfor
.endif
2003-08-28 17:38:18 +02:00
.include <bsd.port.mk>