%# -*-mode: makefile-*-
%define c "# "
# New ports collection makefile for:	<:PROJECT>
# Date created:		<:DATE>
%if !defined("BSDMAIL")
# Whom:			<:AUTHOR> <<:EMAIL>>
%else
# Whom:			<:AUTHOR> <<:BSDMAIL>>
%endif # !defined("BSDMAIL")
#
# $FreeBSD$
#

PORTNAME=	<:PROJECT>
PORTVERSION=
#PORTREVISION=	0
#PORTEPOCH=	0
CATEGORIES=
MASTER_SITES=
#MASTER_SITE_SUBDIR=
#PKGNAMEPREFIX=
#PKGNAMESUFFIX=
#DISTNAME=
#EXTRACT_SUFX=
#DISTFILES=
#DIST_SUBDIR=	${PORTNAME}
#EXTRACT_ONLY=

%if !defined("BSDMAIL")
MAINTAINER=	<:EMAIL>
%else
MAINTAINER=	<:BSDMAIL>
%endif # !defined("BSDMAIL")

.include <bsd.port.pre.mk>
%if defined("KDE_DIRS")
%define BASE_DIRS 1
%endif # defined("KDE_DIRS")
%if defined("BASE_DIRS")
%define MODES 1
%endif # defined("BASE_DIRS")
%if defined("MODES")

DIRMODE=		${BINMODE}
%endif # defined("MODES")
%if defined("BASE_DIRS")

DOCS_SUBDIR=		${DOCSDIR:S|^${PREFIX}/||}
EXAMPLES_SUBDIR=	${EXAMPLESDIR:S|^${PREFIX}/||}
BIN_SUBDIR=		bin
BINDIR=			${PREFIX}/${BIN_SUBDIR}
DATA_SUBDIR=		share
DATADIR=		${PREFIX}/${DATA_SUBDIR}
ETC_SUBDIR=		etc
ETCDIR=			${PREFIX}/${ETC_SUBDIR}
LIB_SUBDIR=		lib
LIBDIR=			${PREFIX}/${LIB_SUBDIR}
PKGDATA_SUBDIR=		share/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PKGDATADIR=		${PREFIX}/${PKGDATA_SUBDIR}
PKGETC_SUBDIR=		etc/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PKGETCDIR=		${PREFIX}/${PKGETC_SUBDIR}
PKGLIB_SUBDIR=		lib/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
PKGLIBDIR=		${PREFIX}/${PKGLIB_SUBDIR}
%endif # defined("BASE_DIRS")
%if defined("KDE_DIRS")

APPS_SUBDIR=		${DATA_SUBDIR}/apps
APPS_DIR=		${PREFIX}/${APPS_SUBDIR}
ICON_SUBDIR=		${DATA_SUBDIR}/icons
ICONDIR=		${PREFIX}/${ICON_SUBDIR}
DESKTOP_SUBDIR=		${DATA_SUBDIR}/applnk
DESKTOPDIR=		${PREFIX}/${DESKTOP_SUBDIR}
MIMELNK_SUBDIR=		${DATA_SUBDIR}/mimelnk
MIMELNKDIR=		${PREFIX}/${MIMELNK_SUBDIR}
%endif # defined("KDE_DIRS")
%if defined("MANPAGESMK")
.include "${FILESDIR}/manpages.mk"
%endif # defined("MANPAGESMK")
.include <bsd.port.post.mk>
%end

port@Makefile::

Uses: BSDMAIL, KDEDIRS, BASEDIRS, MANPAGESMK, MODES

BSDMAIL:
If BSDMAIL is defined, it is used instead of EMAIL.

KDEDIRS:
If defined, variables for common KDE directories are defined. Implies
BASEDIRS, MODES.

BASEDIRS:
If defined, variables for standard locations are defined. Implies MODES.

MANPAGESMK:
If defined, inserts '.include "${FILESDIR}/manpages.mk"'.

MODES:
If defined, defines extra MODE constansts. Currently, DIRMODE.

#EOF
