aboutsummaryrefslogblamecommitdiff
path: root/converters/uulib/Makefile
blob: 9bfe6d641b7b47fd9153dbe609b789259d78967f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             


                                                                     
           

 
                     
                      
                          
                                                                
                                       
 
                                
                                                                   
 
                   
                   
                   
 
                       
 
                                           
 


                             
                 
     
                   

      
                                                                        

                                                                           

           

                                                                         
                                                             
                                              
                                                                    
                                                             



                                                                      
                        
                                                                     
                                           
                                                             
                           
                                                        
       
      
 
                           
# New ports collection makefile for:	uulib
# Date Created:		04 Aug 1996
# Whom:			Tim Vanderhoek <ac199@freenet.hamilton.on.ca>
#
# $FreeBSD$
#

PORTNAME=	uulib
PORTVERSION=	0.5.19
CATEGORIES=	converters
MASTER_SITES=	http://www.fpx.de/fp/Software/UUDeview/download/
DISTNAME=	uudeview-${PORTVERSION}

MAINTAINER=	hoek@FreeBSD.org
COMMENT=	A library for uu/xx/Base64/BinHex/yEnc de-/encoding

GNU_CONFIGURE=	yes
INSTALLS_SHLIB=	yes
USE_REINPLACE=	yes

MAN3=		uulib.3

ALL_TARGET=	libuu.a	libuu.so.${VERSION}

.include <bsd.port.pre.mk>

.if ${PORTOBJFORMAT} == "elf"
VERSION=	3
.else
VERSION=	3.0
.endif

DOCFILES=	COPYING HISTORY doc/Makefile doc/README doc/binhex.fig \
		doc/library.ltx doc/structure.fig doc/td-v1.c doc/td-v2.c \
		doc/td-v3.c doc/test.txt

do-install:
	${INSTALL_DATA} ${WRKSRC}/uulib/libuu.so.${VERSION} ${PREFIX}/lib
	${LN} -sf libuu.so.${VERSION} ${PREFIX}/lib/libuu.so
	${INSTALL_DATA} ${WRKSRC}/uulib/libuu.a ${PREFIX}/lib
	@/usr/bin/ranlib ${PREFIX}/lib/libuu.a
	${INSTALL_DATA} ${WRKSRC}/uulib/uudeview.h ${PREFIX}/include
	${INSTALL_MAN} ${FILESDIR}/uulib.3 ${PREFIX}/man/man3
	${REINPLACE_CMD} -e 's,FUNKYTOKENHERE,${PREFIX}/,' \
		${PREFIX}/man/man3/uulib.3
	@# If we don't remove the .bak file, then man(1) gets confused
	@${RM} -f ${PREFIX}/man/man3/uulib.3.bak
.if !defined(NOPORTDOCS)
	@${ECHO_MSG} "===>   Installing documentation for ${PKGNAME}"
	@${MKDIR} ${PREFIX}/share/doc/uulib
	@${INSTALL_DATA} ${FILESDIR}/porting.notes ${DOCSDIR}
.for docfile in ${DOCFILES}
	@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>