Question about optional setting of symbolic links

Jonathan Weiss tomonage2 at
Fri Jan 7 07:14:43 PST 2005

Hi folks,

I'm working on a port of foomatic-filters and I want to optionaly set up a
symbolic link if CUPS-support is wanted (in order to register foomatic-rip
as a filter for cups).

How do I do this?

I looked through the porters handbook and could not find something to
symbolic links.

I want to do something like this:

#.if defined(WITH_CUPS)
#ln -s /usr/local/bin/foomatic-rip

How do I remove this link later?

My Makefile looks like this:
# New ports collection makefile for:    foomatic-filters
# Date created:                4 January 2005
# Whom:                    Jonathan Weiss <tomonage2 at
# $FreeBSD$

PORTNAME=    foomatic-filters
CATEGORIES=    print

MAINTAINER=    tomonage2 at
COMMENT=    A system for integrating printer drivers with common spoolers

MAN1=        foomatic-rip.1 foomatic-gswrapper.1
PLIST_FILES=    bin/foomatic-rip etc/filter.conf.example

GNU_CONFIGURE=        yes
USE_PERL5=        yes

CONFIGURE_ARGS+=        --prefix=${PREFIX} \

    ${INSTALL_SCRIPT} ${WRKSRC}/foomatic-rip ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/foomatic-gswrapper ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/filter.conf ${PREFIX}/etc/filter.conf.example
    ${INSTALL_MAN} ${WRKSRC}/foomatic-rip.1 ${PREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/foomatic-gswrapper.1 ${PREFIX}/man/man1

.include <>


More information about the freebsd-ports mailing list