# New ports collection makefile for:    ports-common
# Date created:                         2007-12-09
# Whom:                                 SWSoft Ltd.
# OS Version:                           5.5
#
# $FreeBSD: ports/swsoft/ports-common/Makefile 8.3.0 2007/12/09 23:57:45 SWSoft Exp $
#

PORTNAME= ports-common
PORTVERSION= 1.0.0
PORTREVISION= 0

CATEGORIES= swsoft
MASTER_SITES?= http://autoinstall.plesk.com/SiteBuilder/SiteBuilder_4.1.0/dist-pkg-FreeBSD-5.5-i386/distfiles/

MAINTAINER= admins@swsoft.com
COMMENT= Common things for all projects of SwSoft

PORTEPOCH= 1
EXTRACT_SUFX= .tar.gz
DISTNAME= common-ports-1.0.0

VALID_CATEGORIES+= swsoft

NO_BUILD= yes

# Workaround for bsd.port.mk
X11BASE=${LOCALBASE}

PREFIX= /usr

pre-fetch:
	@file=$$(${MD5} ${DISTDIR}/${DISTFILES} | ${AWK} -F '=' '{print $$2}') && \
	sum=$$(${CAT} ${MD5_FILE} | ${GREP} ${DISTFILES} | ${AWK} -F '=' '{print $$2}') && \
	if [ "X$$sum" != "X$$file" ]; then \
	    ${ECHO} "${DISTFILES} was to be refetch"; \
	    ${RM} -f ${DISTDIR}/${DISTFILES}; \
	fi

do-install:
	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
	@${CP} -Rf ${WRKSRC}/* ${PREFIX}
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>
