View | Details | Raw Unified | Return to bug 87234
Collapse All | Expand All

(-)bsd.port.mk (-7 / +32 lines)
Lines 216-221 Link Here
216
#				  compression.
216
#				  compression.
217
# USE_ZIP		- If set, this port distfile uses zip, not tar w/[bg]zip
217
# USE_ZIP		- If set, this port distfile uses zip, not tar w/[bg]zip
218
#				  for compression.
218
#				  for compression.
219
# USE_DOS2UNIX  - If set to "YES", remove the ^M from all files
220
#				  under ${WRKSRC}. If set to a string, remove in all
221
#				  files under ${WRKSRC} with one of these names the ^Ms.
219
# USE_GCC		- If set, this port requires this version of gcc, either in
222
# USE_GCC		- If set, this port requires this version of gcc, either in
220
#				  the system or installed from a port.
223
#				  the system or installed from a port.
221
# USE_GMAKE		- If set, this port uses gmake.
224
# USE_GMAKE		- If set, this port uses gmake.
Lines 1465-1470 Link Here
1465
CONFIGURE_ENV+=	MAKE=${GMAKE}
1468
CONFIGURE_ENV+=	MAKE=${GMAKE}
1466
.endif
1469
.endif
1467
1470
1471
.if defined(USE_DOS2UNIX)
1472
USE_REINPLACE=	yes
1473
.endif
1474
1468
.if defined(USE_GCC)
1475
.if defined(USE_GCC)
1469
.include "${PORTSDIR}/Mk/bsd.gcc.mk"
1476
.include "${PORTSDIR}/Mk/bsd.gcc.mk"
1470
.endif
1477
.endif
Lines 3259-3267 Link Here
3259
3266
3260
# Patch
3267
# Patch
3261
3268
3269
.if !target(patch-dos2unix)
3270
patch-dos2unix:
3271
.if defined(USE_DOS2UNIX)
3272
.if ${USE_DOS2UNIX:U}=="YES"
3273
	@${ECHO_MSG} "===>   Converting DOS text files to UNIX text files"
3274
	@${FIND} -E ${WRKSRC} -type f -print0 | \
3275
			${XARGS} -0 ${REINPLACE_CMD} -i"" -e 's/[[:cntrl:]]*$$//'
3276
.else
3277
.for f in ${USE_DOS2UNIX}
3278
	@${ECHO_MSG} "===>   Converting DOS text file to UNIX text file: ${f}"
3279
	@${REINPLACE_CMD} -i"" -e 's/[[:cntrl:]]*$$//' ${WRKSRC}/${f}
3280
.endfor
3281
.else
3282
	${DO_NADA}
3283
.endif
3284
.endif
3285
3262
.if !target(do-patch)
3286
.if !target(do-patch)
3263
do-patch:
3287
do-patch:
3264
.if defined(PATCHFILES)
3288
.if defined(PATCHFILES)
3289
.endif
3265
	@${ECHO_MSG} "===>  Applying distribution patches for ${PKGNAME}"
3290
	@${ECHO_MSG} "===>  Applying distribution patches for ${PKGNAME}"
3266
	@(cd ${_DISTDIR}; \
3291
	@(cd ${_DISTDIR}; \
3267
	  for i in ${_PATCHFILES}; do \
3292
	  for i in ${_PATCHFILES}; do \
Lines 3761-3769 Link Here
3761
# Please note that the order of the following targets is important, and
3786
# Please note that the order of the following targets is important, and
3762
# should not be modified.
3787
# should not be modified.
3763
3788
3764
_SANITY_SEQ=		pre-everything check-makefile check-categories \
3789
_SANITY_SEQ=	pre-everything check-makefile check-categories \
3765
			check-makevars check-depends check-deprecated \
3790
				check-makevars check-depends check-deprecated \
3766
			check-vulnerable buildanyway-message options-message
3791
				check-vulnerable buildanyway-message options-message
3767
_FETCH_DEP=		check-sanity
3792
_FETCH_DEP=		check-sanity
3768
_FETCH_SEQ=		fetch-depends pre-fetch pre-fetch-script \
3793
_FETCH_SEQ=		fetch-depends pre-fetch pre-fetch-script \
3769
				do-fetch post-fetch post-fetch-script
3794
				do-fetch post-fetch post-fetch-script
Lines 3772-3783 Link Here
3772
				pre-extract-script do-extract \
3797
				pre-extract-script do-extract \
3773
				post-extract post-extract-script
3798
				post-extract post-extract-script
3774
_PATCH_DEP=		extract
3799
_PATCH_DEP=		extract
3775
_PATCH_SEQ=		patch-message patch-depends pre-patch pre-patch-script \
3800
_PATCH_SEQ=		patch-message patch-depends patch-dos2unix pre-patch \
3776
				do-patch post-patch post-patch-script
3801
				pre-patch-script do-patch post-patch post-patch-script
3777
_CONFIGURE_DEP=	patch
3802
_CONFIGURE_DEP=	patch
3778
_CONFIGURE_SEQ=	build-depends lib-depends misc-depends configure-message \
3803
_CONFIGURE_SEQ=	build-depends lib-depends misc-depends configure-message \
3779
		pre-configure pre-configure-script patch-autotools \
3804
				pre-configure pre-configure-script patch-autotools \
3780
		run-autotools do-configure post-configure post-configure-script
3805
				run-autotools do-configure post-configure post-configure-script
3781
_BUILD_DEP=		configure
3806
_BUILD_DEP=		configure
3782
_BUILD_SEQ=		build-message pre-build pre-build-script do-build \
3807
_BUILD_SEQ=		build-message pre-build pre-build-script do-build \
3783
				post-build post-build-script
3808
				post-build post-build-script

Return to bug 87234