Files
ports/textproc/htdig/Makefile
T
Muhammad Moinur Rahman 40843b1ccb Mk/Uses/apache.mk: Refactor after removal of older versions
apache22 and apache25 had been removed a long time ago however the
apache.mk file has never been refactored and is out of sync from the
file Mk/bsd.default-versions.mk. These changes refactors the removals of
the older versions. In addition:

- Move some keywords like USE_APACHE, USE_APACHE_BUILD, USE_APACHE_RUN
  from SANITY_DEPRECATED to SANITY_UNSUPPORTED
- Remove apache versions from ports Makefiles as currently there is only
  one available version in the tree. However the version checks are
  still valid and should work flawlessly whenever a new version is
  added. For example USES=apache:2.2+ are simply replaced with
  USES=apache. As currently there are no other versions available for
  test this could not be checked on it's own ground.
- Update FOO_USE=APACHE=yes to FOO_USES=apache
- Remove trailing whitespaces

Approved by:    portmgr
Differential Revision: https://reviews.freebsd.org/D38113
2023-01-25 11:54:07 -06:00

56 lines
1.5 KiB
Makefile

PORTNAME= htdig
PORTVERSION= 3.2.0.b6
PORTREVISION= 6
CATEGORIES= textproc www
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/3.2.0b6
DISTNAME= htdig-3.2.0b6
MAINTAINER= ports@FreeBSD.org
COMMENT= WWW indexing and searching system
WWW= https://sourceforge.net/projects/htdig/
LICENSE= LGPL20+
LICENSE_FILE= ${WRKSRC}/COPYING
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-config-dir=${PREFIX}/etc/htdig \
--with-default-config-file=${PREFIX}/etc/htdig/htdig.conf \
--with-common-dir=${PREFIX}/share/htdig/common \
--with-database-dir=${PREFIX}/share/htdig/database \
--with-cgi-bin-dir=${PREFIX}/www/cgi-bin \
--with-search-dir=${PREFIX}/www/data \
--with-image-dir=${PREFIX}/www/icons/htdig \
--with-image-url-prefix=/icons/htdig \
--with-ssl
USES= alias cpe libtool ssl
CPE_VENDOR= ${PORTNAME}_project
USE_CXXSTD= c++98
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
LDFLAGS+= -L${OPENSSLLIB}
CFLAGS+= -I${OPENSSLINC}
CONFLICTS_INSTALL= htdump mifluz # bin/htdb_dump bin/htdb_load bin/htdb_stat bin/htdump
OPTIONS_DEFINE= APACHE DOCS
OPTIONS_DEFAULT= APACHE
APACHE_USES= apache
APACHE_CONFIGURE_ON= --with-apache=${LOCALBASE}/sbin
PORTDOCS= *
post-install:
@${MV} ${STAGEDIR}${PREFIX}/etc/htdig/htdig.conf ${STAGEDIR}${PREFIX}/etc/htdig/htdig.conf.sample
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
.for f in ChangeLog ChangeLog.0 README STATUS
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.for f in *.html *.gif
${INSTALL_DATA} ${WRKSRC}/htdoc/${f} ${STAGEDIR}${DOCSDIR}/html
.endfor
.include <bsd.port.mk>